Remove an unnecessary clause from safe_cksumtype() which served only
authorGreg Hudson <ghudson@mit.edu>
Thu, 16 Dec 2010 05:07:24 +0000 (05:07 +0000)
committerGreg Hudson <ghudson@mit.edu>
Thu, 16 Dec 2010 05:07:24 +0000 (05:07 +0000)
to create a theoretical (but impossible in practice) memory leak.

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@24581 dc483132-0cff-0310-8789-dd5450dbe970

src/lib/krb5/krb/mk_safe.c

index 334701dd5f024896090e5abab5ac042191adff92..1f17c6080ebbc6befe4e2d688f8e4c18b493a78f 100644 (file)
@@ -123,7 +123,7 @@ safe_cksumtype(krb5_context context, krb5_auth_context auth_context,
      * Otherwise return 0 for the mandatory checksum. */
     retval = krb5_c_keyed_checksum_types(context, enctype, &nsumtypes,
                                          &sumtypes);
-    if (retval != 0 || nsumtypes == 0)
+    if (retval != 0)
         return 0;
     for (i = 0; i < nsumtypes; i++) {
         if (auth_context->safe_cksumtype == sumtypes[i])