diff options
Diffstat (limited to 'src/zabbix_sender/zabbix_sender.c')
-rw-r--r-- | src/zabbix_sender/zabbix_sender.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/zabbix_sender/zabbix_sender.c b/src/zabbix_sender/zabbix_sender.c index 18d43d4b..88ed3f54 100644 --- a/src/zabbix_sender/zabbix_sender.c +++ b/src/zabbix_sender/zabbix_sender.c @@ -79,7 +79,7 @@ int send_value(char *server,int port,char *shortname,char *value) servaddr_in.sin_port=htons(port); s=socket(AF_INET,SOCK_STREAM,0); - if(s==0) + if(s == -1) { return FAIL; } |