svn rev #25029: trunk/src/lib/gssapi/krb5/
ghudson@MIT.EDU
ghudson at MIT.EDU
Wed Jul 20 16:44:31 EDT 2011
http://src.mit.edu/fisheye/changelog/krb5/?cs=25029
Commit By: ghudson
Log Message:
Fix memory leak of accprinc in kg_accept_krb5().
Changed Files:
U trunk/src/lib/gssapi/krb5/accept_sec_context.c
Modified: trunk/src/lib/gssapi/krb5/accept_sec_context.c
===================================================================
--- trunk/src/lib/gssapi/krb5/accept_sec_context.c 2011-07-20 19:47:11 UTC (rev 25028)
+++ trunk/src/lib/gssapi/krb5/accept_sec_context.c 2011-07-20 20:44:31 UTC (rev 25029)
@@ -640,8 +640,10 @@
}
}
- if ((code = krb5_rd_req(context, &auth_context, &ap_req, accprinc,
- cred->keytab, &ap_req_options, &ticket))) {
+ code = krb5_rd_req(context, &auth_context, &ap_req, accprinc,
+ cred->keytab, &ap_req_options, &ticket);
+ krb5_free_principal(context, accprinc);
+ if (code) {
major_status = GSS_S_FAILURE;
goto fail;
}
More information about the cvs-krb5
mailing list