diff options
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)); |