summaryrefslogtreecommitdiff
path: root/source4
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2004-09-25 12:30:10 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 12:59:14 -0500
commita2f3527d96a15aeac6ad41bcbd4935405da992c7 (patch)
treec706f3d78756f28d4d58facbe0b873e3d53dcbed /source4
parentc5f4378361b9671e39fa83b043f28c972ab30b70 (diff)
downloadsamba-a2f3527d96a15aeac6ad41bcbd4935405da992c7.tar.gz
samba-a2f3527d96a15aeac6ad41bcbd4935405da992c7.tar.bz2
samba-a2f3527d96a15aeac6ad41bcbd4935405da992c7.zip
r2630: I missed a couple of places in the gensec talloc conversion
(This used to be commit 7124949140141513193f41bb8491aa6a283efed7)
Diffstat (limited to 'source4')
-rw-r--r--source4/utils/ntlm_auth.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/source4/utils/ntlm_auth.c b/source4/utils/ntlm_auth.c
index d1e2b80fcf..576996502d 100644
--- a/source4/utils/ntlm_auth.c
+++ b/source4/utils/ntlm_auth.c
@@ -222,7 +222,7 @@ static void manage_gensec_get_pw_request(enum stdio_helper_mode stdio_helper_mod
if (strncmp(buf, "PW ", 3) == 0) {
- (*gensec_state)->password_callback_private = talloc_strndup((*gensec_state)->mem_ctx,
+ (*gensec_state)->password_callback_private = talloc_strndup((*gensec_state),
(const char *)in.data, in.length);
if ((*gensec_state)->password_callback_private == NULL) {
@@ -368,7 +368,7 @@ static void manage_gensec_request(enum stdio_helper_mode stdio_helper_mode,
if (strncmp(buf, "PW ", 3) == 0) {
if (!NT_STATUS_IS_OK(gensec_set_password(*gensec_state,
- talloc_strndup((*gensec_state)->mem_ctx,
+ talloc_strndup((*gensec_state),
(const char *)in.data,
in.length)))) {
DEBUG(1, ("Out of memory\n"));
@@ -430,7 +430,7 @@ static void manage_gensec_request(enum stdio_helper_mode stdio_helper_mode,
} else {
reply_code = "AF";
- reply_arg = talloc_asprintf((*gensec_state)->mem_ctx,
+ reply_arg = talloc_asprintf(*gensec_state,
"%s%s%s", session_info->server_info->domain,
lp_winbind_separator(), session_info->server_info->account_name);
talloc_destroy(session_info->mem_ctx);