From c266ce56187750bf2ec76302a41d136131dfe836 Mon Sep 17 00:00:00 2001 From: Alexandra Ellwood Date: Tue, 21 Oct 2008 21:05:27 +0000 Subject: [PATCH] krb5_change_set_password should free chpw_rep contents ticket: 6214 git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@20902 dc483132-0cff-0310-8789-dd5450dbe970 --- src/lib/krb5/os/changepw.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/lib/krb5/os/changepw.c b/src/lib/krb5/os/changepw.c index 710a3fcf5..d0a8dce75 100644 --- 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); } -- 2.26.2