s3:smb2_sesssetup: check session_info security level before it gets talloc_move'd
authorRalph Boehme <slow@samba.org>
Thu, 8 Nov 2018 16:31:41 +0000 (17:31 +0100)
committerRalph Boehme <slow@samba.org>
Tue, 13 Nov 2018 13:22:46 +0000 (14:22 +0100)
commitbb93e691ca9b1922bf552363a1e7d70792749d67
treef1e2150600fd9b589641b8bfc17785a5e4ad5811
parent181f18c4bf70754a6f3132375d06250baab2871b
s3:smb2_sesssetup: check session_info security level before it gets talloc_move'd

We talloc_move() session_info to session->global->auth_session_info
which sets session_info to NULL.

This means security_session_user_level(NULL, NULL) will always return
SECURITY_ANONYMOUS so we never sign the session setup response.

Bug: https://bugzilla.samba.org/show_bug.cgi?id=13661

Signed-off-by: Ralph Boehme <slow@samba.org>
Reviewed-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Andreas Schneider <asn@samba.org>
Autobuild-User(master): Ralph Böhme <slow@samba.org>
Autobuild-Date(master): Tue Nov 13 14:22:46 CET 2018 on sn-devel-144
selftest/knownfail.d/samba3.smb2 [deleted file]
source3/smbd/smb2_sesssetup.c