diff --git a/src/network.c b/src/network.c
index ac6925468096f46d82627ff797353a4cb1168b5b..a530505628803262c8d1e40ae3789557f72feae5 100644 (file)
--- a/src/network.c
+++ b/src/network.c
if (setsockopt (se->data.client.fd, IPPROTO_IP, optname,
&network_config_ttl,
- sizeof (network_config_ttl)) == -1)
+ sizeof (network_config_ttl)) != 0)
{
char errbuf[1024];
ERROR ("setsockopt: %s",
if (setsockopt (se->data.client.fd, IPPROTO_IPV6, optname,
&network_config_ttl,
- sizeof (network_config_ttl)) == -1)
+ sizeof (network_config_ttl)) != 0)
{
char errbuf[1024];
ERROR ("setsockopt: %s",