diff options
-rw-r--r-- | CHANGES | 2 | ||||
-rw-r--r-- | THANKS.in | 1 | ||||
-rw-r--r-- | plugins/netutils.c | 2 |
3 files changed, 4 insertions, 1 deletions
@@ -7,6 +7,8 @@ This file documents the major additions and syntax changes between releases. | |||
7 | Fixed check_swap for HP/UX where swapinfo command was incorrect | 7 | Fixed check_swap for HP/UX where swapinfo command was incorrect |
8 | Fixed check_disk inode threshold checks, regressed at r1.4.4. | 8 | Fixed check_disk inode threshold checks, regressed at r1.4.4. |
9 | Fixed crit/warn for check_disk perf data | 9 | Fixed crit/warn for check_disk perf data |
10 | Fixed buffer overflow in check_procs | ||
11 | Fixed error handling for UNIX sockets in netutils.c | ||
10 | 12 | ||
11 | 1.4.5 | 13 | 1.4.5 |
12 | Fixed bug in perl's is_hostname routine | 14 | Fixed bug in perl's is_hostname routine |
@@ -206,3 +206,4 @@ Dick van den Burg | |||
206 | Matthias Eble | 206 | Matthias Eble |
207 | Sebastian Schubert | 207 | Sebastian Schubert |
208 | Jason Hoos | 208 | Jason Hoos |
209 | Chris Grim | ||
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)); |