smbd: Fix CID 1518902 Use after free
commitc1be654988a14ed5ac7fb337716cb8f41daebca1
authorVolker Lendecke <vl@samba.org>
Thu, 5 Jan 2023 14:11:10 +0000 (5 15:11 +0100)
committerRalph Boehme <slow@samba.org>
Thu, 5 Jan 2023 17:04:34 +0000 (5 17:04 +0000)
treefe0dcdbb49383cb136ef3d3e978298c9fba77a3e
parent316b8fa4a8ae1f5e48692c2a86c6c1c962953389
smbd: Fix CID 1518902 Use after free

The SMB_REALLOC macro properly deals with failure to realloc, so
overwriting the target variable is correct here.

Signed-off-by: Volker Lendecke <vl@samba.org>
source3/smbd/smb1_trans2.c