The Samba-Bugzilla – Attachment 10875 Details for
Bug 11149
libwbclient uses global variables and is not thread safe
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
always initialise winbind context correctly
0001-Ensure-we-always-initialise-the-winbind-context.patch (text/plain), 948 bytes, created by
Matthew Newton
on 2015-03-17 01:15:24 UTC
(
hide
)
Description:
always initialise winbind context correctly
Filename:
MIME Type:
Creator:
Matthew Newton
Created:
2015-03-17 01:15:24 UTC
Size:
948 bytes
patch
obsolete
>From 5e0360f6842e5eb4d777bdd0cbccb83aa2c44f53 Mon Sep 17 00:00:00 2001 >From: Matthew Newton <matthew-git@newtoncomputing.co.uk> >Date: Tue, 17 Mar 2015 00:56:12 +0000 >Subject: [PATCH] Ensure we always initialise the winbind context > >Stops segfault when a context is passed. Internal Samba code will >currently always call this with NULL so won't trigger the bug. > >Signed-off-by: Matthew Newton <matthew-git@newtoncomputing.co.uk> >--- > nsswitch/wb_common.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > >diff --git a/nsswitch/wb_common.c b/nsswitch/wb_common.c >index 02aab9c..036557a 100644 >--- a/nsswitch/wb_common.c >+++ b/nsswitch/wb_common.c >@@ -746,7 +746,7 @@ NSS_STATUS winbindd_priv_request_response(struct winbindd_context *ctx, > { > NSS_STATUS status = NSS_STATUS_UNAVAIL; > int count = 0; >- struct winbindd_context *wb_ctx; >+ struct winbindd_context *wb_ctx = ctx; > > if (ctx == NULL) { > wb_ctx = &wb_global_ctx; >-- >1.7.10.4 >
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:
vl
:
review+
jra
:
review+
Actions:
View
Attachments on
bug 11149
:
10862
| 10875