diff options
author | /C=EU/ST=EU/CN=Patrick McHardy/emailAddress=kaber@trash.net </C=EU/ST=EU/CN=Patrick McHardy/emailAddress=kaber@trash.net> | 2007-06-26 15:29:45 +0000 |
---|---|---|
committer | /C=EU/ST=EU/CN=Patrick McHardy/emailAddress=kaber@trash.net </C=EU/ST=EU/CN=Patrick McHardy/emailAddress=kaber@trash.net> | 2007-06-26 15:29:45 +0000 |
commit | f5ccb2d8479ec1a7e7acdf988bd055a30b0286e5 (patch) | |
tree | 367629a7babbf74cca351e2473118638c0562bb2 /iptables.c | |
parent | acf20dea7ef4db864027a05e0f8e7d9b15a7511a (diff) |
Fix "iptables getsockopt failed strangely" when querying revisions for non-existant matches and targets
Reported by Joseph Jezak <josejx@gentoo.org>.
Diffstat (limited to 'iptables.c')
-rw-r--r-- | iptables.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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) { |