summaryrefslogtreecommitdiffstats
path: root/source3/auth/auth_unix.c
diff options
context:
space:
mode:
authorAndreas Schneider <asn@samba.org>2013-12-13 19:11:01 +0100
committerAndrew Bartlett <abartlet@samba.org>2014-02-05 11:41:25 +1300
commit1b59c9743cf3fbd66b0b8b52162b2cc8d922e5cf (patch)
tree8df838ed28eb6b50c0246c1fcd4e507c78b5085f /source3/auth/auth_unix.c
parent1bb11c7744df6928cb8a096373ab920366b38770 (diff)
downloadsamba-1b59c9743cf3fbd66b0b8b52162b2cc8d922e5cf.tar.gz
samba-1b59c9743cf3fbd66b0b8b52162b2cc8d922e5cf.tar.xz
samba-1b59c9743cf3fbd66b0b8b52162b2cc8d922e5cf.zip
s3-auth: Pass talloc context to make_server_info_pw().
Pair-Programmed-With: Guenther Deschner <gd@samba.org> Signed-off-by: Guenther Deschner <gd@samba.org> Signed-off-by: Andreas Schneider <asn@samba.org> Reviewed-by: Andrew Bartlett <abartlet@samba.org>
Diffstat (limited to 'source3/auth/auth_unix.c')
-rw-r--r--source3/auth/auth_unix.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/source3/auth/auth_unix.c b/source3/auth/auth_unix.c
index c8b5435abc..7b483a2f05 100644
--- a/source3/auth/auth_unix.c
+++ b/source3/auth/auth_unix.c
@@ -67,8 +67,11 @@ static NTSTATUS check_unix_security(const struct auth_context *auth_context,
unbecome_root();
if (NT_STATUS_IS_OK(nt_status)) {
- if (pass) {
- make_server_info_pw(server_info, pass->pw_name, pass);
+ if (pass != NULL) {
+ nt_status = make_server_info_pw(mem_ctx,
+ pass->pw_name,
+ pass,
+ server_info);
} else {
/* we need to do somthing more useful here */
nt_status = NT_STATUS_NO_SUCH_USER;