diff options
-rw-r--r-- | ip6tables.c | 2 | ||||
-rw-r--r-- | iptables.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/ip6tables.c b/ip6tables.c index f316c7a9..6b2766b7 100644 --- a/ip6tables.c +++ b/ip6tables.c @@ -1130,7 +1130,7 @@ static int compatible_revision(const char *name, u_int8_t revision, int opt) max_rev = getsockopt(sockfd, IPPROTO_IPV6, opt, &rev, &s); if (max_rev < 0) { /* Definitely don't support this? */ - if (errno == EPROTONOSUPPORT) { + if (errno == ENOENT || errno == EPROTONOSUPPORT) { close(sockfd); return 0; } else if (errno == ENOPROTOOPT) { @@ -1158,7 +1158,7 @@ static int compatible_revision(const char *name, u_int8_t revision, int opt) max_rev = getsockopt(sockfd, IPPROTO_IP, opt, &rev, &s); if (max_rev < 0) { /* Definitely don't support this? */ - if (errno == EPROTONOSUPPORT) { + if (errno == ENOENT || errno == EPROTONOSUPPORT) { close(sockfd); return 0; } else if (errno == ENOPROTOOPT) { |