s3:smb2_sesssetup: add smbd_smb2_session_setup_wrap_send/recv()
authorStefan Metzmacher <metze@samba.org>
Sat, 2 May 2015 14:21:25 +0000 (16:21 +0200)
committerKarolin Seeger <kseeger@samba.org>
Wed, 20 May 2015 12:10:33 +0000 (14:10 +0200)
commit3a2b5ec5ad5ed05800d49b93ff93e5f826a63e56
tree59c23abb1a9fdb66db858a7ef91f7b97d47ddde0
parent7a5671170a92e1a725ff0d1ee8d7c561668fb777
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