smb2_sesssetup: don't shutdown a session on failure when it's not valid yet on the...
authorStefan Metzmacher <metze@samba.org>
Tue, 9 Mar 2021 15:15:49 +0000 (16:15 +0100)
committerJeremy Allison <jra@samba.org>
Wed, 17 Mar 2021 00:49:32 +0000 (00:49 +0000)
commitd95e90fe4604e095161c0db8d925f3fc3c766070
treea7c8744c2d71d279119e29da71ef64a0752bab4b
parentb8ccd2391afcc50ca109e328a523b233fcb91a90
smb2_sesssetup: don't shutdown a session on failure when it's not valid yet on the connection

If someone tries to operate on a session that is not yet valid on the
current connection and the current session setup fails, then we should
not shutdown the session.

BUG: https://bugzilla.samba.org/show_bug.cgi?id=14512

Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
selftest/knownfail.d/smb2.session
source3/smbd/smb2_sesssetup.c