[Nagiosplug-devel] [ nagiosplug-Patches-1632072 ] pointer error in plugins/netutils.c
SourceForge.net
noreply at sourceforge.net
Sat Jan 20 07:08:31 CET 2007
Patches item #1632072, was opened at 2007-01-10 02:51
Message generated for change (Comment added) made by dermoth
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=397599&aid=1632072&group_id=29880
Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: Bugfix
Group: None
>Status: Closed
>Resolution: Fixed
Priority: 5
Private: No
Submitted By: Chris Grim (cgrim)
Assigned to: Nobody/Anonymous (nobody)
Summary: pointer error in plugins/netutils.c
Initial Comment:
In np_net_connect() a pointer to the value returned by socket() is compared against zero rather than the value itself. Patch against CVS HEAD is below.
Chris
Index: plugins/netutils.c
===================================================================
RCS file: /cvsroot/nagiosplug/nagiosplug/plugins/netutils.c,v
retrieving revision 1.32
diff -r1.32 netutils.c
228c228
< if(sd < 0){
---
> if(*sd < 0){
----------------------------------------------------------------------
>Comment By: Thomas Guyot (dermoth)
Date: 2007-01-20 01:08
Message:
Logged In: YES
user_id=375623
Originator: NO
Thanks for reporting. Fixed in CVS.
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=397599&aid=1632072&group_id=29880
More information about the Devel
mailing list