svn commit: samba r4021 - in trunk/source/libsmb: .

jra at samba.org jra at samba.org
Tue Nov 30 18:59:09 GMT 2004


Author: jra
Date: 2004-11-30 18:59:06 +0000 (Tue, 30 Nov 2004)
New Revision: 4021

WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=rev&root=samba&rev=4021

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:
   trunk/source/libsmb/clikrb5.c


Changeset:
Modified: trunk/source/libsmb/clikrb5.c
===================================================================
--- trunk/source/libsmb/clikrb5.c	2004-11-30 18:58:58 UTC (rev 4020)
+++ trunk/source/libsmb/clikrb5.c	2004-11-30 18:59:06 UTC (rev 4021)
@@ -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