summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Bartlett <abartlet@samba.org>2011-02-11 11:34:56 +1100
committerAndrew Bartlett <abartlet@samba.org>2011-02-16 01:08:19 +0100
commit1354d3dc747344390302e3fd2a202ff372985a9c (patch)
treeea9f1c51df82d4361896eff8b30413e8996afaba
parentdce69c29e7a6c6e5f818bed21cb251b1a5f60556 (diff)
downloadsamba-1354d3dc747344390302e3fd2a202ff372985a9c.tar.gz
samba-1354d3dc747344390302e3fd2a202ff372985a9c.tar.bz2
samba-1354d3dc747344390302e3fd2a202ff372985a9c.zip
s3-auth Fix memory leak in security=share and force user =
In these cases, the server_info was not stolen onto a long term memory context, and so remained on the NULL context where it was created. Andrew Bartlett Autobuild-User: Andrew Bartlett <abartlet@samba.org> Autobuild-Date: Wed Feb 16 01:08:19 CET 2011 on sn-devel-104
-rw-r--r--source3/auth/auth_util.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source3/auth/auth_util.c b/source3/auth/auth_util.c
index 7673664697..1c036ff124 100644
--- a/source3/auth/auth_util.c
+++ b/source3/auth/auth_util.c
@@ -819,7 +819,7 @@ NTSTATUS make_serverinfo_from_username(TALLOC_CTX *mem_ctx,
return status;
}
- *presult = result;
+ *presult = talloc_steal(mem_ctx, result);
return NT_STATUS_OK;
}