mirror of
https://github.com/openssl/openssl.git
synced 2025-01-18 13:44:20 +08:00
paddr may be NULL. Do not crash if it is.
This commit is contained in:
parent
f1ca5f5b89
commit
131645ecce
15
ssl/kssl.c
15
ssl/kssl.c
@ -1429,11 +1429,16 @@ kssl_sget_tkt( /* UPDATE */ KSSL_CTX *kssl_ctx,
|
|||||||
printf("\tcaddrs: %p, authdata: %p\n",
|
printf("\tcaddrs: %p, authdata: %p\n",
|
||||||
krb5ticket->enc_part2->caddrs,
|
krb5ticket->enc_part2->caddrs,
|
||||||
krb5ticket->enc_part2->authorization_data);
|
krb5ticket->enc_part2->authorization_data);
|
||||||
printf("\tcaddrs:\n");
|
if (paddr)
|
||||||
for (i=0; paddr[i] != NULL; i++)
|
{
|
||||||
{ krb5_data d;
|
printf("\tcaddrs:\n");
|
||||||
d.length=paddr[i]->length; d.data=paddr[i]->contents;
|
for (i=0; paddr[i] != NULL; i++)
|
||||||
print_krb5_data("\t\tIP: ", &d);
|
{
|
||||||
|
krb5_data d;
|
||||||
|
d.length=paddr[i]->length;
|
||||||
|
d.data=paddr[i]->contents;
|
||||||
|
print_krb5_data("\t\tIP: ", &d);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
printf("\tstart/auth/end times: %d / %d / %d\n",
|
printf("\tstart/auth/end times: %d / %d / %d\n",
|
||||||
krb5ticket->enc_part2->times.starttime,
|
krb5ticket->enc_part2->times.starttime,
|
||||||
|
Loading…
Reference in New Issue
Block a user