diff options
author | Andrew Bartlett <abartlet@samba.org> | 2010-08-06 20:41:54 +1000 |
---|---|---|
committer | Günther Deschner <gd@samba.org> | 2010-08-10 12:13:00 +0200 |
commit | 617ec0733dad40c9441b1e1533fb3d99bf22c24f (patch) | |
tree | 291f19ebff6d40cb591dba5a2ac0cbf5a5cba6dc | |
parent | d112557a05b23480abd3f2f52c1c7b8ded2b4f66 (diff) | |
download | samba-617ec0733dad40c9441b1e1533fb3d99bf22c24f.tar.gz samba-617ec0733dad40c9441b1e1533fb3d99bf22c24f.tar.bz2 samba-617ec0733dad40c9441b1e1533fb3d99bf22c24f.zip |
s3:ntlmssp Don't use talloc_tos() for NTLMSSP blobs for now
This code will, I hope, soon be merged in common, and the Samba4
use case does not currently support talloc_tos() properly. Use another
context for now.
Andrew Bartlett
Signed-off-by: Günther Deschner <gd@samba.org>
-rw-r--r-- | source3/libsmb/ntlmssp.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source3/libsmb/ntlmssp.c b/source3/libsmb/ntlmssp.c index 2fdc938f49..920bf94df8 100644 --- a/source3/libsmb/ntlmssp.c +++ b/source3/libsmb/ntlmssp.c @@ -416,7 +416,7 @@ static NTSTATUS ntlmssp_server_negotiate(struct ntlmssp_state *ntlmssp_state, if (DEBUGLEVEL >= 10) { struct CHALLENGE_MESSAGE *challenge = talloc( - talloc_tos(), struct CHALLENGE_MESSAGE); + ntlmssp_state, struct CHALLENGE_MESSAGE); if (challenge != NULL) { challenge->NegotiateFlags = chal_flags; status = ntlmssp_pull_CHALLENGE_MESSAGE( @@ -524,7 +524,7 @@ static NTSTATUS ntlmssp_server_auth(struct ntlmssp_state *ntlmssp_state, if (DEBUGLEVEL >= 10) { struct AUTHENTICATE_MESSAGE *authenticate = talloc( - talloc_tos(), struct AUTHENTICATE_MESSAGE); + ntlmssp_state, struct AUTHENTICATE_MESSAGE); if (authenticate != NULL) { NTSTATUS status; authenticate->NegotiateFlags = auth_flags; |