From bfe71190f21d7f87bc52132e2950dda32d7fc747 Mon Sep 17 00:00:00 2001 From: Greg Hudson Date: Thu, 16 Dec 2010 05:07:24 +0000 Subject: [PATCH] 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 --- src/lib/krb5/krb/mk_safe.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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]) -- 2.26.2