[Nagios-devel] netutils use of socket descriptor

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
Locked
Guest

[Nagios-devel] netutils use of socket descriptor

Post by Guest »

This is a multi-part message in MIME format.
--------------080208010004070803010206
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit

wondering if this is a valid change.
attached. thanks.

--------------080208010004070803010206
Content-Type: text/plain;
name="netutils"
Content-Transfer-Encoding: 7bit
Content-Disposition: inline;
filename="netutils"

--- netutils.c 2008-12-08 19:30:27.000000000 +0200
+++ /tmp/netutils.c 2009-06-13 14:15:00.000000000 +0200
@@ -61,7 +61,7 @@
freeaddrinfo(r);
return ERROR;
}
- if(sd>0)
+ if(*sd>0)
break;

close(*sd);

--------------080208010004070803010206--





This post was automatically imported from historical nagios-devel mailing list archives
Original poster: [email protected]
Locked