svn rev #24581: trunk/src/lib/krb5/krb/
ghudson@MIT.EDU
ghudson at MIT.EDU
Thu Dec 16 00:07:24 EST 2010
http://mv.ezproxy.com.ezproxyberklee.flo.org/fisheye/changelog/krb5/?cs=24581
Commit By: ghudson
Log Message:
Remove an unnecessary clause from safe_cksumtype() which served only
to create a theoretical (but impossible in practice) memory leak.
Changed Files:
U trunk/src/lib/krb5/krb/mk_safe.c
Modified: trunk/src/lib/krb5/krb/mk_safe.c
===================================================================
--- trunk/src/lib/krb5/krb/mk_safe.c 2010-12-16 03:28:02 UTC (rev 24580)
+++ trunk/src/lib/krb5/krb/mk_safe.c 2010-12-16 05:07:24 UTC (rev 24581)
@@ -123,7 +123,7 @@
* 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])
More information about the cvs-krb5
mailing list