From e8f486883fb13c1e5bb9cb63196f798370b4abb8 Mon Sep 17 00:00:00 2001 From: Stefan Metzmacher Date: Sat, 4 Aug 2012 09:07:24 +0200 Subject: auth/ntlmssp: avoid talloc_tos() in ntlmssp_client_initial() This avoids a smb_panic at log level = 10. If we don't have a talloc stackframe yet. metze --- auth/ntlmssp/ntlmssp_client.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'auth') diff --git a/auth/ntlmssp/ntlmssp_client.c b/auth/ntlmssp/ntlmssp_client.c index f51a1ed2a5..fc66a8d8e3 100644 --- a/auth/ntlmssp/ntlmssp_client.c +++ b/auth/ntlmssp/ntlmssp_client.c @@ -96,7 +96,7 @@ NTSTATUS ntlmssp_client_initial(struct gensec_security *gensec_security, if (DEBUGLEVEL >= 10) { struct NEGOTIATE_MESSAGE *negotiate = talloc( - talloc_tos(), struct NEGOTIATE_MESSAGE); + ntlmssp_state, struct NEGOTIATE_MESSAGE); if (negotiate != NULL) { status = ntlmssp_pull_NEGOTIATE_MESSAGE( out, negotiate, negotiate); -- cgit