s3:smb2_sesssetup: add smbd_smb2_session_setup_wrap_send/recv()
commit3af2142f97e9b43a14c8a4e9d4869625e1137cde
authorStefan Metzmacher <metze@samba.org>
Sat, 2 May 2015 14:21:25 +0000 (2 16:21 +0200)
committerKarolin Seeger <kseeger@samba.org>
Wed, 20 May 2015 14:34:30 +0000 (20 16:34 +0200)
tree164163033510065a8a2c3cc3b67f04ec66cc4886
parentf28cbf0fe2a9f3b84e867e78cbc5f2b91b99823c
s3:smb2_sesssetup: add smbd_smb2_session_setup_wrap_send/recv()

The wrapper calls smbXsrv_session_shutdown_send/recv() in case of an error,
this makes sure a failing reauth shuts down the session like an explicit logoff.

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

Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
(cherry picked from commit 50aeb6b38b14d6c26229834ece3c32eb50f9e56a)
source3/smbd/smb2_sesssetup.c