summaryrefslogtreecommitdiffstats
path: root/src/libutil/addr.c
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2015-02-05 18:20:22 +0000
committerVsevolod Stakhov <vsevolod@highsecure.ru>2015-02-05 18:20:22 +0000
commit1e08514471896e3b3069cdc25f457036d257cc68 (patch)
treeb591aa5d3eac5fec70d137d664ccc4b95db63cc4 /src/libutil/addr.c
parent9068c5040e2737ce70f0cc9498000efa30c14c74 (diff)
downloadrspamd-1e08514471896e3b3069cdc25f457036d257cc68.tar.gz
rspamd-1e08514471896e3b3069cdc25f457036d257cc68.zip
Fix potential issues as found by coverity.
Diffstat (limited to 'src/libutil/addr.c')
-rw-r--r--src/libutil/addr.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libutil/addr.c b/src/libutil/addr.c
index a276f0cfd..cb044defa 100644
--- a/src/libutil/addr.c
+++ b/src/libutil/addr.c
@@ -63,7 +63,7 @@ rspamd_ip_check_ipv6 (void)
const struct in6_addr ip6_local = IN6ADDR_LOOPBACK_INIT;
s = socket (AF_INET6, SOCK_STREAM, 0);
- if (s == -1 && errno == EAFNOSUPPORT) {
+ if (s == -1) {
ipv6_status = RSPAMD_IPV6_UNSUPPORTED;
}
else {