diff options
author | Thomas Guyot-Sionnest <dermoth@users.sourceforge.net> | 2007-01-20 06:07:48 +0000 |
---|---|---|
committer | Thomas Guyot-Sionnest <dermoth@users.sourceforge.net> | 2007-01-20 06:07:48 +0000 |
commit | e6d99d8ec38cc7bfd5d7021e102bdc8da7033dc0 (patch) | |
tree | 14fbf8329ab0d385f336e39215a978bdafad39c6 /plugins/netutils.c | |
parent | e4af02e9ddec21d6ea2c8399b7c5d9d9c1e6e8e8 (diff) | |
download | monitoring-plugins-e6d99d8ec38cc7bfd5d7021e102bdc8da7033dc0.tar.gz |
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
Diffstat (limited to 'plugins/netutils.c')
-rw-r--r-- | plugins/netutils.c | 2 |
1 files changed, 1 insertions, 1 deletions
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) | |||
225 | su.sun_family = AF_UNIX; | 225 | su.sun_family = AF_UNIX; |
226 | strncpy(su.sun_path, host_name, UNIX_PATH_MAX); | 226 | strncpy(su.sun_path, host_name, UNIX_PATH_MAX); |
227 | *sd = socket(PF_UNIX, SOCK_STREAM, 0); | 227 | *sd = socket(PF_UNIX, SOCK_STREAM, 0); |
228 | if(sd < 0){ | 228 | if(*sd < 0){ |
229 | die(STATE_UNKNOWN, _("Socket creation failed")); | 229 | die(STATE_UNKNOWN, _("Socket creation failed")); |
230 | } | 230 | } |
231 | result = connect(*sd, (struct sockaddr *)&su, sizeof(su)); | 231 | result = connect(*sd, (struct sockaddr *)&su, sizeof(su)); |