[Nagiosplug-checkins] nagiosplug/plugins netutils.c,1.32,1.33

Thomas Guyot dermoth at users.sourceforge.net
Sat Jan 20 07:07:50 CET 2007


Update of /cvsroot/nagiosplug/nagiosplug/plugins
In directory sc8-pr-cvs7.sourceforge.net:/tmp/cvs-serv13541/plugins

Modified Files:
	netutils.c 
Log Message:
Fix bug #1632072 pointer error in plugins/netutils.c. Add changelog entry for previous commit.


Index: netutils.c
===================================================================
RCS file: /cvsroot/nagiosplug/nagiosplug/plugins/netutils.c,v
retrieving revision 1.32
retrieving revision 1.33
diff -u -d -r1.32 -r1.33
--- netutils.c	9 Nov 2006 11:44:16 -0000	1.32
+++ netutils.c	20 Jan 2007 06:07:48 -0000	1.33
@@ -225,7 +225,7 @@
 		su.sun_family = AF_UNIX;
 		strncpy(su.sun_path, host_name, UNIX_PATH_MAX);
 		*sd = socket(PF_UNIX, SOCK_STREAM, 0);
-		if(sd < 0){
+		if(*sd < 0){
 			die(STATE_UNKNOWN, _("Socket creation failed"));
 		}
 		result = connect(*sd, (struct sockaddr *)&su, sizeof(su));





More information about the Commits mailing list