s3:smbd: make sure smbXsrv_session_update() doesn't segfault with table == NULL
commit1781910df6d5f2678cdd5716d2db242199fceb84
authorStefan Metzmacher <metze@samba.org>
Wed, 14 Jul 2021 15:15:52 +0000 (14 17:15 +0200)
committerStefan Metzmacher <metze@samba.org>
Thu, 15 Jul 2021 00:06:31 +0000 (15 00:06 +0000)
treeb429895917dbca0b3e63b19866551138c57eca7e
parentaa29d89942355f988815d3b4b562bf3cf0f26b94
s3:smbd: make sure smbXsrv_session_update() doesn't segfault with table == NULL

There might be other places than smb2srv_update_crypto_flags(), which
may call smbXsrv_session_update() with a fake session, they should
return in error instead of segfaulting.

Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
source3/smbd/smbXsrv_session.c