From: Sumit Bose Date: Mon, 12 Sep 2011 13:50:31 +0000 (+0200) Subject: s3-auth: fix uninitialized server_info X-Git-Url: http://git.samba.org/?a=commitdiff_plain;h=81b965af892fb279b71ebdc8a9541d2f157368c6;p=mat%2Fsamba.git s3-auth: fix uninitialized server_info Signed-off-by: Günther Deschner Autobuild-User: Günther Deschner Autobuild-Date: Mon Sep 12 17:44:46 CEST 2011 on sn-devel-104 --- 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)) {