projects
/
krb5.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f49e072
)
In pa_sam_2, free sc2 in an error-handling case where it was leaked
author
Greg Hudson
<ghudson@mit.edu>
Tue, 5 May 2009 16:57:42 +0000
(16:57 +0000)
committer
Greg Hudson
<ghudson@mit.edu>
Tue, 5 May 2009 16:57:42 +0000
(16:57 +0000)
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@22315
dc483132
-0cff-0310-8789-
dd5450dbe970
src/lib/krb5/krb/preauth2.c
patch
|
blob
|
history
diff --git
a/src/lib/krb5/krb/preauth2.c
b/src/lib/krb5/krb/preauth2.c
index 442f6a767b522ef51798044422c04980800a0312..48d743a401758ba3d85c987224212c928cb8f8b6 100644
(file)
--- a/
src/lib/krb5/krb/preauth2.c
+++ b/
src/lib/krb5/krb/preauth2.c
@@
-1417,8
+1417,10
@@
krb5_error_code pa_sam_2(krb5_context context,
retval = decode_krb5_sam_challenge_2_body(&sc2->sam_challenge_2_body, &sc2b);
- if (retval)
+ if (retval) {
+ krb5_free_sam_challenge_2(context, sc2);
return(retval);
+ }
if (!sc2->sam_cksum || ! *sc2->sam_cksum) {
krb5_free_sam_challenge_2(context, sc2);