summaryrefslogtreecommitdiffstats
path: root/source3/auth/user_krb5.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/user_krb5.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/user_krb5.c')
-rw-r--r--source3/auth/user_krb5.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/source3/auth/user_krb5.c b/source3/auth/user_krb5.c
index 974a8aa2f81..7d44285d511 100644
--- a/source3/auth/user_krb5.c
+++ b/source3/auth/user_krb5.c
@@ -242,7 +242,7 @@ NTSTATUS make_session_info_krb5(TALLOC_CTX *mem_ctx,
*/
DEBUG(10, ("didn't find user %s in passdb, calling "
"make_server_info_pw\n", username));
- status = make_server_info_pw(&tmp, username, pw);
+ status = make_server_info_pw(mem_ctx, username, pw, &tmp);
}
TALLOC_FREE(sampass);
@@ -253,9 +253,6 @@ NTSTATUS make_session_info_krb5(TALLOC_CTX *mem_ctx,
return status;
}
- /* Steal tmp server info into the server_info pointer. */
- server_info = talloc_move(mem_ctx, &tmp);
-
/* make_server_info_pw does not set the domain. Without this
* we end up with the local netbios name in substitutions for
* %D. */