svn rev #23920: trunk/src/lib/krb5/krb/
ghudson@MIT.EDU
ghudson at MIT.EDU
Wed Apr 21 19:47:50 EDT 2010
http://src.mit.edu/fisheye/changelog/krb5/?cs=23920
Commit By: ghudson
Log Message:
Fix a memory leak in get_creds.c's try_fallback_realm().
Changed Files:
U trunk/src/lib/krb5/krb/get_creds.c
Modified: trunk/src/lib/krb5/krb/get_creds.c
===================================================================
--- trunk/src/lib/krb5/krb/get_creds.c 2010-04-21 23:37:04 UTC (rev 23919)
+++ trunk/src/lib/krb5/krb/get_creds.c 2010-04-21 23:47:50 UTC (rev 23920)
@@ -496,8 +496,10 @@
return code;
/* Give up if the fallback realm isn't any different. */
- if (data_eq_string(ctx->server->realm, hrealms[0]))
+ if (data_eq_string(ctx->server->realm, hrealms[0])) {
+ krb5_free_host_realm(context, hrealms);
return ctx->reply_code;
+ }
/* Rewrite server->realm to be the fallback realm. */
krb5_free_data_contents(context, &ctx->server->realm);
More information about the cvs-krb5
mailing list