From e6d99d8ec38cc7bfd5d7021e102bdc8da7033dc0 Mon Sep 17 00:00:00 2001 From: Thomas Guyot-Sionnest Date: Sat, 20 Jan 2007 06:07:48 +0000 Subject: Fix bug #1632072 pointer error in plugins/netutils.c. Add changelog entry for previous commit. git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@1568 f882894a-f735-0410-b71e-b25c423dba1c --- plugins/netutils.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'plugins/netutils.c') diff --git a/plugins/netutils.c b/plugins/netutils.c index 9294f3a2..e6ffc548 100644 --- a/plugins/netutils.c +++ b/plugins/netutils.c @@ -225,7 +225,7 @@ np_net_connect (const char *host_name, int port, int *sd, int proto) 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)); -- cgit v1.2.3