smbXsrv_client: handle NAME_NOT_FOUND from smb2srv_client_connection_{pass,drop}()
commit5d66d5b84f87267243dcd5223210906ce589af91
authorStefan Metzmacher <metze@samba.org>
Wed, 12 Oct 2022 12:57:18 +0000 (12 14:57 +0200)
committerRalph Boehme <slow@samba.org>
Thu, 13 Oct 2022 12:30:37 +0000 (13 12:30 +0000)
treedf3ad847c6517e7595c306e489ab8de2d6117882
parent8c8d8cf01e01c2726d03fa1c81e0ce9992ee736c
smbXsrv_client: handle NAME_NOT_FOUND from smb2srv_client_connection_{pass,drop}()

If we get NT_STATUS_OBJECT_NOT_FOUND from smb2srv_client_connection_{pass,drop}()
we should just keep the connection and overwrite the stale record in
smbXsrv_client_global.tdb. It's basically a race with serverid_exists()
and a process that doesn't cleanly teardown.

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

Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Ralph Boehme <slow@samba.org>
source3/smbd/smbXsrv_client.c