projects
/
krb5.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4110052
)
Fix memory leak of accprinc in kg_accept_krb5()
author
Greg Hudson
<ghudson@mit.edu>
Wed, 20 Jul 2011 20:44:31 +0000
(20:44 +0000)
committer
Greg Hudson
<ghudson@mit.edu>
Wed, 20 Jul 2011 20:44:31 +0000
(20:44 +0000)
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@25029
dc483132
-0cff-0310-8789-
dd5450dbe970
src/lib/gssapi/krb5/accept_sec_context.c
patch
|
blob
|
history
diff --git
a/src/lib/gssapi/krb5/accept_sec_context.c
b/src/lib/gssapi/krb5/accept_sec_context.c
index a291b7eba81b21c4c3552265bc0c2a58752a57c0..e45c6711c971b28c4bfa21666b518530cd524042 100644
(file)
--- a/
src/lib/gssapi/krb5/accept_sec_context.c
+++ b/
src/lib/gssapi/krb5/accept_sec_context.c
@@
-640,8
+640,10
@@
kg_accept_krb5(minor_status, context_handle,
}
}
- 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;
}