svn rev #22199: trunk/src/lib/krb5/krb/

ghudson@MIT.EDU ghudson at MIT.EDU
Mon Apr 13 14:43:29 EDT 2009


http://src.mit.edu/fisheye/changelog/krb5/?cs=22199
Commit By: ghudson
Log Message:
In pa_sam, remove a gratuitous null check for etype which was
immediately followed by dereferencing etype.



Changed Files:
U   trunk/src/lib/krb5/krb/preauth2.c
Modified: trunk/src/lib/krb5/krb/preauth2.c
===================================================================
--- trunk/src/lib/krb5/krb/preauth2.c	2009-04-13 18:36:42 UTC (rev 22198)
+++ trunk/src/lib/krb5/krb/preauth2.c	2009-04-13 18:43:29 UTC (rev 22199)
@@ -871,7 +871,7 @@
 	/* message from the KDC.  If it is not set, pick an enctype that we */
 	/* think the KDC will have for us.				    */
 
-	if (etype && *etype == 0)
+	if (*etype == 0)
 	   *etype = ENCTYPE_DES_CBC_CRC;
 
 	if ((ret = (gak_fct)(context, request->client, *etype, prompter,




More information about the cvs-krb5 mailing list