diff options
author | Kamen Mazdrashki <kamen.mazdrashki@postpath.com> | 2009-12-24 04:08:12 +0200 |
---|---|---|
committer | Jelmer Vernooij <jelmer@samba.org> | 2009-12-25 14:15:31 +0100 |
commit | f03e88fa4bc1101ca9031d697f33e36effb669fd (patch) | |
tree | 440b058da26fbc5cda262af1eceb6080bb210684 /source4 | |
parent | 078482ad0efc9c4902601080f146853a1a3494fe (diff) | |
download | samba-f03e88fa4bc1101ca9031d697f33e36effb669fd.tar.gz samba-f03e88fa4bc1101ca9031d697f33e36effb669fd.tar.bz2 samba-f03e88fa4bc1101ca9031d697f33e36effb669fd.zip |
s4-net: Fix 'talloc_free with references ...' error
Signed-off-by: Jelmer Vernooij <jelmer@samba.org>
Diffstat (limited to 'source4')
-rw-r--r-- | source4/libnet/libnet_passwd.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/source4/libnet/libnet_passwd.c b/source4/libnet/libnet_passwd.c index cb09e3041e..8195347b83 100644 --- a/source4/libnet/libnet_passwd.c +++ b/source4/libnet/libnet_passwd.c @@ -109,11 +109,11 @@ static NTSTATUS libnet_ChangePassword_samr(struct libnet_context *ctx, TALLOC_CT nt_errstr(status)); r->samr.out.error_string = talloc_asprintf(mem_ctx, "samr_ChangePasswordUser3 for '%s\\%s' failed: %s", - r->samr.in.domain_name, r->samr.in.account_name, + r->samr.in.domain_name, r->samr.in.account_name, nt_errstr(status)); } goto disconnect; - } + } /* prepare samr_ChangePasswordUser2 */ encode_pw_buffer(lm_pass.data, r->samr.in.newpassword, STR_ASCII|STR_TERMINATE); @@ -216,7 +216,7 @@ static NTSTATUS libnet_ChangePassword_samr(struct libnet_context *ctx, TALLOC_CT #endif disconnect: /* close connection */ - talloc_free(c.out.dcerpc_pipe); + talloc_unlink(ctx, c.out.dcerpc_pipe); return status; } @@ -627,7 +627,7 @@ static NTSTATUS libnet_SetPassword_samr(struct libnet_context *ctx, TALLOC_CTX * disconnect: /* close connection */ - talloc_free(c.out.dcerpc_pipe); + talloc_unlink(ctx, c.out.dcerpc_pipe); return status; } |