s3:smbd: turn assignment into assert check in call_trans2findfirst()
commiteae7ce8a2e0e0982bba70fbd36f444954339abe3
authorRalph Boehme <slow@samba.org>
Mon, 4 Jan 2021 15:09:43 +0000 (4 16:09 +0100)
committerStefan Metzmacher <metze@samba.org>
Thu, 14 Jan 2021 11:30:38 +0000 (14 11:30 +0000)
tree136afb9dd145fdb3a53d20fe1e8da97e7a9e9bbc
parente1a10b58171ec5a1b41ab99962bc6eebb3b427e3
s3:smbd: turn assignment into assert check in call_trans2findfirst()

The pathref fsp link destructor will set smb_dname->fsp to NULL. Turning this
into an assert to give a hint at readers of the code trying to understand the
mechanics.

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