summaryrefslogtreecommitdiffstats
path: root/iptables.c
diff options
context:
space:
mode:
Diffstat (limited to 'iptables.c')
-rw-r--r--iptables.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/iptables.c b/iptables.c
index 893b02db..83b0c820 100644
--- a/iptables.c
+++ b/iptables.c
@@ -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) {