From a2f3527d96a15aeac6ad41bcbd4935405da992c7 Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Sat, 25 Sep 2004 12:30:10 +0000 Subject: r2630: I missed a couple of places in the gensec talloc conversion (This used to be commit 7124949140141513193f41bb8491aa6a283efed7) --- source4/utils/ntlm_auth.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'source4') 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); -- cgit