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

ghudson@MIT.EDU ghudson at MIT.EDU
Tue Oct 20 09:47:40 EDT 2009


http://src.mit.edu/fisheye/changelog/krb5/?cs=22952
Commit By: ghudson
Log Message:
In krb5_k_make_checksum, check for a null key passed with a keyed
checksum instead of just crashing.



Changed Files:
U   trunk/src/lib/crypto/krb/make_checksum.c
Modified: trunk/src/lib/crypto/krb/make_checksum.c
===================================================================
--- trunk/src/lib/crypto/krb/make_checksum.c	2009-10-20 10:56:21 UTC (rev 22951)
+++ trunk/src/lib/crypto/krb/make_checksum.c	2009-10-20 13:47:40 UTC (rev 22952)
@@ -68,7 +68,7 @@
 	/* check if key is compatible */
 	if (ctp->keyed_etype) {
 	    ktp1 = find_enctype(ctp->keyed_etype);
-	    ktp2 = find_enctype(key->keyblock.enctype);
+	    ktp2 = key ? find_enctype(key->keyblock.enctype) : NULL;
 	    if (ktp1 == NULL || ktp2 == NULL || ktp1->enc != ktp2->enc) {
 		ret = KRB5_BAD_ENCTYPE;
 		goto cleanup;




More information about the cvs-krb5 mailing list