diff options
author | Richard Levitte <levitte@openssl.org> | 2001-07-12 15:54:10 +0000 |
---|---|---|
committer | Richard Levitte <levitte@openssl.org> | 2001-07-12 15:54:10 +0000 |
commit | 131645ecce8369d6edf2e6abbb2818b88bb14a1c (patch) | |
tree | 6138c88527ab8ac531f922d4052c4b7cd2708638 | |
parent | f1ca5f5b89d42da5f57809035b93b196c7f34c34 (diff) |
paddr may be NULL. Do not crash if it is.
-rw-r--r-- | ssl/kssl.c | 15 |
1 files changed, 10 insertions, 5 deletions
diff --git a/ssl/kssl.c b/ssl/kssl.c index 46f63d7f4f..6fd8e7ea07 100644 --- a/ssl/kssl.c +++ b/ssl/kssl.c @@ -1429,11 +1429,16 @@ kssl_sget_tkt( /* UPDATE */ KSSL_CTX *kssl_ctx, printf("\tcaddrs: %p, authdata: %p\n", krb5ticket->enc_part2->caddrs, krb5ticket->enc_part2->authorization_data); - printf("\tcaddrs:\n"); - for (i=0; paddr[i] != NULL; i++) - { krb5_data d; - d.length=paddr[i]->length; d.data=paddr[i]->contents; - print_krb5_data("\t\tIP: ", &d); + if (paddr) + { + printf("\tcaddrs:\n"); + for (i=0; paddr[i] != NULL; i++) + { + 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", krb5ticket->enc_part2->times.starttime, |