summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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)) {