1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-27 03:21:53 +03:00

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 commit is contained in:
Jeremy Allison 2004-11-30 18:58:58 +00:00 committed by Gerald (Jerry) Carter
parent 5fc0f838e7
commit 6f6b4c61e0

View File

@ -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