The Samba-Bugzilla – Attachment 5049 Details for
Bug 6879
winbindd crashes with "INTERNAL ERROR: Signal 11"
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
for v3-4-test
crash-in-rpccli_set_timeout-v3-4-test-mbox.diff (text/plain), 1.35 KB, created by
Bo Yang
on 2009-12-03 01:25:18 UTC
(
hide
)
Description:
for v3-4-test
Filename:
MIME Type:
Creator:
Bo Yang
Created:
2009-12-03 01:25:18 UTC
Size:
1.35 KB
patch
obsolete
>From 71049533ffc6a493390cf258b58ce900d5119646 Mon Sep 17 00:00:00 2001 >From: Bo Yang <boyang@samba.org> >Date: Fri, 4 Dec 2009 12:53:38 +0800 >Subject: [PATCH] s3: Fix crash in winbindd;(bug#6879). > >Signed-off-by: Bo Yang <boyang@samba.org> >(cherry picked from commit cdb68bd2b61147df77b7f2de3fb4e29be07e7bd9) >--- > source3/winbindd/winbindd_rpc.c | 10 ++++++++-- > 1 files changed, 8 insertions(+), 2 deletions(-) > >diff --git a/source3/winbindd/winbindd_rpc.c b/source3/winbindd/winbindd_rpc.c >index f176fb3..d64b318 100644 >--- a/source3/winbindd/winbindd_rpc.c >+++ b/source3/winbindd/winbindd_rpc.c >@@ -1283,8 +1283,12 @@ NTSTATUS winbindd_lookup_names(TALLOC_CTX *mem_ctx, > * This call can take a long time > * allow the server to time out. > * 35 seconds should do it. >+ * NB >+ * only do this when the undelying transport is named pipe. > */ >- orig_timeout = rpccli_set_timeout(cli, 35000); >+ if (cli->transport->transport == NCACN_NP) { >+ orig_timeout = rpccli_set_timeout(cli, 35000); >+ } > > status = lookup_names_fn(cli, > mem_ctx, >@@ -1297,7 +1301,9 @@ NTSTATUS winbindd_lookup_names(TALLOC_CTX *mem_ctx, > types); > > /* And restore our original timeout. */ >- rpccli_set_timeout(cli, orig_timeout); >+ if (cli->transport->transport == NCACN_NP) { >+ rpccli_set_timeout(cli, orig_timeout); >+ } > > if (!NT_STATUS_IS_OK(status)) { > return status; >-- >1.5.3 >
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:
gd
:
review?
(
gd
)
Actions:
View
Attachments on
bug 6879
: 5049