summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2004-11-30 18:58:58 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 10:53:28 -0500
commite7a0aabc2e50306983794c79e23daaf92993db7b (patch)
tree3d2e60bbb95b26a0d5d76910cb15b54a91800bb6
parent5f67f0125831b2a70605b2661585311633b244aa (diff)
downloadsamba-e7a0aabc2e50306983794c79e23daaf92993db7b.tar.gz
samba-e7a0aabc2e50306983794c79e23daaf92993db7b.tar.bz2
samba-e7a0aabc2e50306983794c79e23daaf92993db7b.zip
r4020: Fix for crash reported by Bård Kalbakk <baard@inett.biz>.
Don't go fishing for the authorisation data unless we know it's there. Jeremy. (This used to be commit 6f6b4c61e03afb4d35bf6b3ea468fb211d703aa7)
-rw-r--r--source3/libsmb/clikrb5.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source3/libsmb/clikrb5.c b/source3/libsmb/clikrb5.c
index 068e782207..15be8967b8 100644
--- a/source3/libsmb/clikrb5.c
+++ b/source3/libsmb/clikrb5.c
@@ -184,7 +184,7 @@
void get_auth_data_from_tkt(DATA_BLOB *auth_data, krb5_ticket *tkt)
{
#if defined(HAVE_KRB5_TKT_ENC_PART2)
- if (tkt->enc_part2)
+ if (tkt->enc_part2 && tkt->enc_part2->authorization_data && tkt->enc_part2->authorization_data[0] && tkt->enc_part2->authorization_data[0]->length)
*auth_data = data_blob(tkt->enc_part2->authorization_data[0]->contents,
tkt->enc_part2->authorization_data[0]->length);
#else