svn commit: samba r4020 - in branches/SAMBA_3_0/source/libsmb: .
jra at samba.org
jra at samba.org
Tue Nov 30 18:58:58 GMT 2004
Author: jra
Date: 2004-11-30 18:58:58 +0000 (Tue, 30 Nov 2004)
New Revision: 4020
WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=rev&root=samba&rev=4020
Log:
Fix for crash reported by B?\195?\165rd Kalbakk <baard at inett.biz>.
Don't go fishing for the authorisation data unless we
know it's there.
Jeremy.
Modified:
branches/SAMBA_3_0/source/libsmb/clikrb5.c
Changeset:
Modified: branches/SAMBA_3_0/source/libsmb/clikrb5.c
===================================================================
--- branches/SAMBA_3_0/source/libsmb/clikrb5.c 2004-11-30 15:55:27 UTC (rev 4019)
+++ branches/SAMBA_3_0/source/libsmb/clikrb5.c 2004-11-30 18:58:58 UTC (rev 4020)
@@ -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
More information about the samba-cvs
mailing list