s3:client: Fix a use-after-free issue in smbclient
authorAndreas Schneider <asn@samba.org>
Thu, 22 Dec 2022 09:31:11 +0000 (10:31 +0100)
committerAndreas Schneider <asn@cryptomilk.org>
Thu, 22 Dec 2022 10:52:31 +0000 (10:52 +0000)
commit9c707b4be27e2a6f79886d3ec8b5066c922b99bd
tree61a3f87094d2431791285deb4419b1ed30e336ae
parent0d1961267cd9e8f1158a407c5d135514c363f37e
s3:client: Fix a use-after-free issue in smbclient

Detected by

    make test TESTS="samba3.blackbox.chdir-cache"

with an optimized build or with AddressSanitizer.

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

Signed-off-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Ralph Boehme <slow@samba.org>
Autobuild-User(master): Andreas Schneider <asn@cryptomilk.org>
Autobuild-Date(master): Thu Dec 22 10:52:31 UTC 2022 on sn-devel-184
source3/client/client.c