projects
/
krb5.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
86389db
)
Fix a memory leak in pa_sam
author
Greg Hudson
<ghudson@mit.edu>
Tue, 5 May 2009 17:11:48 +0000
(17:11 +0000)
committer
Greg Hudson
<ghudson@mit.edu>
Tue, 5 May 2009 17:11:48 +0000
(17:11 +0000)
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@22317
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 48d743a401758ba3d85c987224212c928cb8f8b6..d00d59b9d378e20f4bd6888983d6466459ecf482 100644
(file)
--- a/
src/lib/krb5/krb/preauth2.c
+++ b/
src/lib/krb5/krb/preauth2.c
@@
-876,8
+876,11
@@
krb5_error_code pa_sam(krb5_context context,
*etype = ENCTYPE_DES_CBC_CRC;
if ((ret = (gak_fct)(context, request->client, *etype, prompter,
- prompter_data, salt, s2kparams, as_key, gak_data)))
- return(ret);
+ prompter_data, salt, s2kparams, as_key,
+ gak_data))) {
+ krb5_free_sam_challenge(context, sam_challenge);
+ return(ret);
+ }
}
snprintf(name, sizeof(name), "%.*s",
SAMDATA(sam_challenge->sam_type_name, "SAM Authentication",