]> git.ipfire.org Git - thirdparty/samba.git/commit
s3:smbd: Fix invalid memory free
authorAndreas Schneider <asn@samba.org>
Wed, 26 Jun 2024 14:11:57 +0000 (16:11 +0200)
committerAndreas Schneider <asn@cryptomilk.org>
Mon, 8 Jul 2024 07:36:32 +0000 (07:36 +0000)
commit0131e4737c2da46a7b1f492c67d851ee9f860ed2
tree1af2fb6a0b574755ddcaf4b3b4c0caa1f5ce2aef
parent94b8fa41346f5aefae21515bb8d1d46e2a71d485
s3:smbd: Fix invalid memory free

"Error: BAD_FREE (CWE-590):
samba-4.20.0rc2/source3/smbd/smb1_process.c:1485: array_free: ""smb1_srv_send"" frees array ""errbuf"".
 1483|    char errbuf[smb_size];
 1484|    error_packet(errbuf, 0, 0, status, __LINE__, __FILE__);
 1485|->  if (!smb1_srv_send(req->xconn,
 1486|       errbuf,
 1487|       true,"

Pair-Programmed-With: Ralph Boehme <slow@samba.org>
Signed-off-by: Ralph Boehme <slow@samba.org>
Signed-off-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Volker Lendecke <vl@samba.org>
source3/smbd/seal.c
source3/smbd/smb1_process.c