projects
/
krb5.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ae423f5
)
krb5_change_set_password should free chpw_rep contents
author
Alexandra Ellwood
<lxs@mit.edu>
Tue, 21 Oct 2008 21:05:27 +0000
(21:05 +0000)
committer
Alexandra Ellwood
<lxs@mit.edu>
Tue, 21 Oct 2008 21:05:27 +0000
(21:05 +0000)
ticket: 6214
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@20902
dc483132
-0cff-0310-8789-
dd5450dbe970
src/lib/krb5/os/changepw.c
patch
|
blob
|
history
diff --git
a/src/lib/krb5/os/changepw.c
b/src/lib/krb5/os/changepw.c
index 710a3fcf568c933dff3e3c724cc221dc0d20ad01..d0a8dce75e7086b6f70a5c8e0a976b60b3e72278 100644
(file)
--- a/
src/lib/krb5/os/changepw.c
+++ b/
src/lib/krb5/os/changepw.c
@@
-208,6
+208,7
@@
krb5_change_set_password(krb5_context context, krb5_creds *creds, char *newpw,
struct sockaddr_storage remote_addr;
struct addrlist al = ADDRLIST_INIT;
+ memset(&chpw_rep, 0, sizeof(krb5_data));
memset( &callback_ctx, 0, sizeof(struct sendto_callback_context));
callback_ctx.context = context;
callback_ctx.newpw = newpw;
@@
-330,6
+331,7
@@
cleanup:
krb5int_free_addrlist (&al);
krb5_free_data_contents(callback_ctx.context, &callback_ctx.ap_req);
+ krb5_free_data_contents(callback_ctx.context, &chpw_rep);
return(code);
}