From: Greg Hudson Date: Thu, 16 Dec 2010 05:07:24 +0000 (+0000) Subject: Remove an unnecessary clause from safe_cksumtype() which served only X-Git-Tag: krb5-1.10-alpha1~628 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=bfe71190f21d7f87bc52132e2950dda32d7fc747;p=krb5.git Remove an unnecessary clause from safe_cksumtype() which served only 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 --- diff --git a/src/lib/krb5/krb/mk_safe.c b/src/lib/krb5/krb/mk_safe.c index 334701dd5..1f17c6080 100644 --- a/src/lib/krb5/krb/mk_safe.c +++ b/src/lib/krb5/krb/mk_safe.c @@ -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])