use the hostname pointer instead of using IPv4-only info from a struct
This commit is contained in:
parent
47819ea86e
commit
0be7944d66
@ -197,7 +197,7 @@ krb4_auth(void *app_data, struct connectdata *conn)
|
|||||||
int checksum;
|
int checksum;
|
||||||
u_int32_t cs;
|
u_int32_t cs;
|
||||||
struct krb4_data *d = app_data;
|
struct krb4_data *d = app_data;
|
||||||
char *host = conn->hostaddr->h_name;
|
char *host = conn->hostname;
|
||||||
ssize_t nread;
|
ssize_t nread;
|
||||||
int l = sizeof(conn->local_addr);
|
int l = sizeof(conn->local_addr);
|
||||||
struct SessionHandle *data = conn->data;
|
struct SessionHandle *data = conn->data;
|
||||||
@ -362,7 +362,7 @@ void Curl_krb_kauth(struct connectdata *conn)
|
|||||||
if (strcmp ((char*)tktcopy.dat + 8,
|
if (strcmp ((char*)tktcopy.dat + 8,
|
||||||
KRB_TICKET_GRANTING_TICKET) != 0) {
|
KRB_TICKET_GRANTING_TICKET) != 0) {
|
||||||
afs_string_to_key (passwd,
|
afs_string_to_key (passwd,
|
||||||
krb_realmofhost(conn->hostaddr->h_name),
|
krb_realmofhost(conn->hostname),
|
||||||
&key);
|
&key);
|
||||||
des_key_sched (&key, schedule);
|
des_key_sched (&key, schedule);
|
||||||
des_pcbc_encrypt((des_cblock*)tkt.dat, (des_cblock*)tktcopy.dat,
|
des_pcbc_encrypt((des_cblock*)tkt.dat, (des_cblock*)tktcopy.dat,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user