summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorSumit Bose <sbose@redhat.com>2011-09-12 15:50:31 +0200
committerGünther Deschner <gd@samba.org>2011-09-12 17:44:46 +0200
commit81b965af892fb279b71ebdc8a9541d2f157368c6 (patch)
treed1d2db1e0bb93db9c97979ccd585ac7bb3ba01b5 /source3
parent456aee80f584e136a4e1decb6c53fbe019ead6b8 (diff)
downloadsamba-81b965af892fb279b71ebdc8a9541d2f157368c6.tar.gz
samba-81b965af892fb279b71ebdc8a9541d2f157368c6.tar.bz2
samba-81b965af892fb279b71ebdc8a9541d2f157368c6.zip
s3-auth: fix uninitialized server_info
Signed-off-by: Günther Deschner <gd@samba.org> Autobuild-User: Günther Deschner <gd@samba.org> Autobuild-Date: Mon Sep 12 17:44:46 CEST 2011 on sn-devel-104
Diffstat (limited to 'source3')
-rw-r--r--source3/auth/user_krb5.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/source3/auth/user_krb5.c b/source3/auth/user_krb5.c
index 0cb80c8cfa..489080e0e8 100644
--- a/source3/auth/user_krb5.c
+++ b/source3/auth/user_krb5.c
@@ -242,6 +242,10 @@ NTSTATUS make_session_info_krb5(TALLOC_CTX *mem_ctx,
"make_server_info_pw\n", username));
status = make_server_info_pw(&tmp, username, pw);
}
+
+ /* Steal tmp server info into the server_info pointer. */
+ server_info = talloc_move(mem_ctx, &tmp);
+
TALLOC_FREE(sampass);
if (!NT_STATUS_IS_OK(status)) {