The Samba-Bugzilla – Attachment 17530 Details for
Bug 15174
smbXsrv_connection_shutdown_send result leaked
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
git-am fix for 4.16.next, 4.15.next.
0001-s3-smbd-Fix-memory-leak-in-smbd_server_connection_te.patch (text/plain), 1.33 KB, created by
Jeremy Allison
on 2022-09-23 21:57:45 UTC
(
hide
)
Description:
git-am fix for 4.16.next, 4.15.next.
Filename:
MIME Type:
Creator:
Jeremy Allison
Created:
2022-09-23 21:57:45 UTC
Size:
1.33 KB
patch
obsolete
>From 919628318958ca7addd7f56453238458243773a5 Mon Sep 17 00:00:00 2001 >From: Jeremy Allison <jra@samba.org> >Date: Wed, 14 Sep 2022 17:05:05 -0700 >Subject: [PATCH] s3: smbd: Fix memory leak in > smbd_server_connection_terminate_done(). > >The function smbd_server_connection_terminate_done() does not free subreq >which is allocated in smbXsrv_connection_shutdown_send, this can be a >memory leakage if multi-channel is enabled. > >Suggested fix by haihua yang <hhyangdev@gmail.com> > >BUG: https://bugzilla.samba.org/show_bug.cgi?id=15174 > >Signed-off-by: Jeremy Allison <jra@samba.org> >Reviewed-by: Noel Power <noel.power@suse.com> > >Autobuild-User(master): Noel Power <npower@samba.org> >Autobuild-Date(master): Fri Sep 23 09:51:20 UTC 2022 on sn-devel-184 > >(cherry picked from commit b600b0c8d9690cb5eeded1e5925c8e667c11af04) >--- > source3/smbd/smb2_server.c | 1 + > 1 file changed, 1 insertion(+) > >diff --git a/source3/smbd/smb2_server.c b/source3/smbd/smb2_server.c >index e8a91238baf..1cd5953f116 100644 >--- a/source3/smbd/smb2_server.c >+++ b/source3/smbd/smb2_server.c >@@ -1643,6 +1643,7 @@ static void smbd_server_connection_terminate_done(struct tevent_req *subreq) > NTSTATUS status; > > status = smbXsrv_connection_shutdown_recv(subreq); >+ TALLOC_FREE(subreq); > if (!NT_STATUS_IS_OK(status)) { > exit_server("smbXsrv_connection_shutdown_recv failed"); > } >-- >2.34.1 >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Flags:
npower
:
review+
Actions:
View
Attachments on
bug 15174
: 17530