smbd: don't client->connections without checking client != NULL first in exit_server_...
authorRalph Boehme <slow@samba.org>
Wed, 25 Jul 2018 18:02:23 +0000 (20:02 +0200)
committerStefan Metzmacher <metze@samba.org>
Wed, 25 Jul 2018 23:29:38 +0000 (01:29 +0200)
commit4e711d18c8e9953aca2ca64179c3d0b305a41c62
treeb85712535ea6e97e2bf95f622995c81fd1a97e7a
parent5ab0b4af9edbd50c0c7747840f9b3aca9cb01da8
smbd: don't client->connections without checking client != NULL first in exit_server_common()

exit_server_common() can be called also in smbd processes without a
smbXsrv_client structure, e.g. the parent or some background tasks.

Signed-off-by: Ralph Boehme <slow@samba.org>
Reviewed-by: Stefan Metzmacher <metze@samba.org>
Autobuild-User(master): Stefan Metzmacher <metze@samba.org>
Autobuild-Date(master): Thu Jul 26 01:29:38 CEST 2018 on sn-devel-144
source3/smbd/server_exit.c