In the FQDN function in etc.c, getaddrinfo() is used to
resolve a hostname to its FQDN, only the AI_CANONNAME
flag is not set so it getaddrinfo() never fills in the
ai_canonname pointer in the addrinfo struct. The FQDN
is thus not supplied which results in cookie security
violations for web hosts on the local network.
This patch adds the AI_CANONNAME flag to the request.
FQDN() getaddrinfo() patch
Merged in w3m 0.5.1.