Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 385684 Details for
Bug 523950
sys-power/nut-2.6.5-r1 - nut-scanner: segmentation fault due to calling pthread_join on an invalid thread_t id, when it is run without arguments
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Patch to prevent nut-scanner segfault.
0001-Prevent-segfault-due-to-calling-pthread_join-with-in.patch (text/plain), 860 bytes, created by
Lukas Sandström
on 2014-09-28 16:18:22 UTC
(
hide
)
Description:
Patch to prevent nut-scanner segfault.
Filename:
MIME Type:
Creator:
Lukas Sandström
Created:
2014-09-28 16:18:22 UTC
Size:
860 bytes
patch
obsolete
>From a791021caad538c631c48839d0c7ed8bb071d9e2 Mon Sep 17 00:00:00 2001 >From: =?UTF-8?q?Lukas=20Sandstr=C3=B6m?= <luksan@gmail.com> >Date: Sun, 28 Sep 2014 17:59:53 +0200 >Subject: [PATCH] Prevent segfault due to calling pthread_join with invalid > thread id. > >--- > tools/nut-scanner/nut-scanner.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > >diff --git a/tools/nut-scanner/nut-scanner.c b/tools/nut-scanner/nut-scanner.c >index db582be..b6446b5 100644 >--- a/tools/nut-scanner/nut-scanner.c >+++ b/tools/nut-scanner/nut-scanner.c >@@ -443,7 +443,7 @@ display_help: > if( allow_xml && nutscan_avail_xml_http ) { > pthread_join(thread[TYPE_XML],NULL); > } >- if( allow_oldnut && nutscan_avail_nut ) { >+ if( allow_oldnut && nutscan_avail_nut && start_ip ) { > pthread_join(thread[TYPE_NUT],NULL); > } > if( allow_avahi && nutscan_avail_avahi ) { >-- >1.8.5.5 >
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 Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 523950
: 385684