mirror of
https://github.com/samba-team/samba.git
synced 2024-12-22 13:34:15 +03:00
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>
(cherry picked from commit 9c707b4be2
)
Autobuild-User(v4-16-test): Jule Anger <janger@samba.org>
Autobuild-Date(v4-16-test): Tue Jan 3 19:19:57 UTC 2023 on sn-devel-184
This commit is contained in:
parent
eeeb1a476f
commit
78848f21a3
@ -5126,10 +5126,11 @@ static int cmd_tcon(void)
|
||||
return -1;
|
||||
}
|
||||
|
||||
talloc_free(sharename);
|
||||
|
||||
d_printf("tcon to %s successful, tid: %u\n", sharename,
|
||||
cli_state_get_tid(cli));
|
||||
|
||||
talloc_free(sharename);
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user