The Samba-Bugzilla – Attachment 13304 Details for
Bug 12852
SIGSEGV in cm_connect_lsa_tcp dereferencing conn->lsa_tcp_pipe->transport after error
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
git-am fix for 4.6.next, 4.5.next.
0001-Bug-15852.-There-are-valid-paths-where-conn-lsa_pipe.patch (text/plain), 1.48 KB, created by
Jeremy Allison
on 2017-06-22 21:34:42 UTC
(
hide
)
Description:
git-am fix for 4.6.next, 4.5.next.
Filename:
MIME Type:
Creator:
Jeremy Allison
Created:
2017-06-22 21:34:42 UTC
Size:
1.48 KB
patch
obsolete
>From f834213fcbc2f78e856640686450c6c1e01e427e Mon Sep 17 00:00:00 2001 >From: Richard Sharpe <richard.sharpe@primarydata.com> >Date: Tue, 20 Jun 2017 12:40:39 -0700 >Subject: [PATCH] Bug 15852. There are valid paths where > conn->lsa_pipe_tcp->transport is NULL. Protect against this. > >Based on a suggestion from Metze. > >BUG: https://bugzilla.samba.org/show_bug.cgi?id=12852 > >Signed-off-by: Richard Sharpe <realrichardsharpe@gmail.com> >Reviewed-by: Jeremy Allison <jra@samba.org> > >Autobuild-User(master): Jeremy Allison <jra@samba.org> >Autobuild-Date(master): Thu Jun 22 23:16:46 CEST 2017 on sn-devel-144 > >(cherry picked from commit 03042b85c8140842633b36f3124e504b97b852a1) >--- > source3/winbindd/winbindd_cm.c | 8 +++++--- > 1 file changed, 5 insertions(+), 3 deletions(-) > >diff --git a/source3/winbindd/winbindd_cm.c b/source3/winbindd/winbindd_cm.c >index 686bf9f1742..2cf89edad86 100644 >--- a/source3/winbindd/winbindd_cm.c >+++ b/source3/winbindd/winbindd_cm.c >@@ -2912,10 +2912,12 @@ static NTSTATUS cm_connect_lsa_tcp(struct winbindd_domain *domain, > > conn = &domain->conn; > >- if (conn->lsa_pipe_tcp && >+ /* >+ * rpccli_is_connected handles more error cases >+ */ >+ if (rpccli_is_connected(conn->lsa_pipe_tcp) && > conn->lsa_pipe_tcp->transport->transport == NCACN_IP_TCP && >- conn->lsa_pipe_tcp->auth->auth_level >= DCERPC_AUTH_LEVEL_INTEGRITY && >- rpccli_is_connected(conn->lsa_pipe_tcp)) { >+ conn->lsa_pipe_tcp->auth->auth_level >= DCERPC_AUTH_LEVEL_INTEGRITY) { > goto done; > } > >-- >2.11.0 >
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:
rsharpe
:
review+
Actions:
View
Attachments on
bug 12852
:
13297
| 13304