[Nagiosplug-devel] [ nagiosplug-Bugs-1055054 ] [PATCH] Fix segfauly in check_nwstat.c

SourceForge.net noreply at sourceforge.net
Tue Oct 26 20:27:13 CEST 2004


Bugs item #1055054, was opened at 2004-10-26 20:26
Message generated for change (Tracker Item Submitted) made by Item Submitter
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=397597&aid=1055054&group_id=29880

Category: None
Group: Release (specify)
Status: Open
Resolution: None
Priority: 5
Submitted By: Phil Dibowitz (jaymzh)
Assigned to: Nobody/Anonymous (nobody)
Summary: [PATCH] Fix segfauly in check_nwstat.c

Initial Comment:
The attached patch fixes a segfault in check_nwstat.c.
If the script can't get netware version, it does:     
                                                 

    asprintf(&netware_version,"");

Which despite what one would hope, actually sets the
POINTER to NULL, per a long-standing, documented bug in
the gnu library - which they keep for backwards
compatibility, best I can tell.                       
               

Anyway, in the cases where there's nothing to copy, I
simply use a strdup which prevents the segfault. Please
apply.                                      


----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=397597&aid=1055054&group_id=29880




More information about the Devel mailing list