summaryrefslogtreecommitdiff
path: root/lib/hostip4.c
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2007-07-01 22:01:18 +0000
committerDaniel Stenberg <daniel@haxx.se>2007-07-01 22:01:18 +0000
commit54967d2a3ab5559631407f7b7f67ef48c2dda6dd (patch)
treea48676ba7a58d61e49e27da20a6c99066f9fe424 /lib/hostip4.c
parent667fd9a60bd8bae34660b4bf8124060f1577ada3 (diff)
downloadcurl-54967d2a3ab5559631407f7b7f67ef48c2dda6dd.tar.gz
Thomas J. Moore provided a patch that introduces Kerberos5 support in
libcurl. This also makes the options change name to --krb (from --krb4) and CURLOPT_KRBLEVEL (from CURLOPT_KRB4LEVEL) but the old names are still
Diffstat (limited to 'lib/hostip4.c')
-rw-r--r--lib/hostip4.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/hostip4.c b/lib/hostip4.c
index 43b7c6961..9ff883892 100644
--- a/lib/hostip4.c
+++ b/lib/hostip4.c
@@ -380,6 +380,9 @@ Curl_addrinfo *Curl_he2ai(const struct hostent *he, int port)
and use that area to store the address */
ai->ai_addr = (struct sockaddr *) ((char*)ai + sizeof(Curl_addrinfo));
+ /* FIXME: need to free this eventually */
+ ai->ai_canonname = strdup(he->h_name);
+
/* leave the rest of the struct filled with zero */
addr = (struct sockaddr_in *)ai->ai_addr; /* storage area for this info */