aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2002-04-25 15:50:49 +0000
committerDaniel Stenberg <daniel@haxx.se>2002-04-25 15:50:49 +0000
commit0be7944d66d5015dac8b6ad6126abd899613e22a (patch)
treebfb7ba1c1d9bc4101b2f1ebb516fdc256952be94 /lib
parent47819ea86e45cb4302cbfb45722e91a04939422c (diff)
use the hostname pointer instead of using IPv4-only info from a struct
Diffstat (limited to 'lib')
-rw-r--r--lib/krb4.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/krb4.c b/lib/krb4.c
index 3b3db404b..10b386fbe 100644
--- a/lib/krb4.c
+++ b/lib/krb4.c
@@ -197,7 +197,7 @@ krb4_auth(void *app_data, struct connectdata *conn)
int checksum;
u_int32_t cs;
struct krb4_data *d = app_data;
- char *host = conn->hostaddr->h_name;
+ char *host = conn->hostname;
ssize_t nread;
int l = sizeof(conn->local_addr);
struct SessionHandle *data = conn->data;
@@ -362,7 +362,7 @@ void Curl_krb_kauth(struct connectdata *conn)
if (strcmp ((char*)tktcopy.dat + 8,
KRB_TICKET_GRANTING_TICKET) != 0) {
afs_string_to_key (passwd,
- krb_realmofhost(conn->hostaddr->h_name),
+ krb_realmofhost(conn->hostname),
&key);
des_key_sched (&key, schedule);
des_pcbc_encrypt((des_cblock*)tkt.dat, (des_cblock*)tktcopy.dat,