svn rev #22865: trunk/src/lib/crypto/krb/

ghudson@MIT.EDU ghudson at MIT.EDU
Wed Oct 7 14:13:29 EDT 2009


http://src.mit.edu/fisheye/changelog/krb5/?cs=22865
Commit By: ghudson
Log Message:
Fix krb5_c_weak_enctype in the case of invalid enctypes; r22839
simplified it a bit too much.



Changed Files:
U   trunk/src/lib/crypto/krb/valid_enctype.c
Modified: trunk/src/lib/crypto/krb/valid_enctype.c
===================================================================
--- trunk/src/lib/crypto/krb/valid_enctype.c	2009-10-07 16:39:54 UTC (rev 22864)
+++ trunk/src/lib/crypto/krb/valid_enctype.c	2009-10-07 18:13:29 UTC (rev 22865)
@@ -45,5 +45,5 @@
     const struct krb5_keytypes *ktp;
 
     ktp = find_enctype(etype);
-    return ((ktp->flags & ETYPE_WEAK) != 0);
+    return (ktp != NULL && (ktp->flags & ETYPE_WEAK) != 0);
 }




More information about the cvs-krb5 mailing list