diff options
Diffstat (limited to 'iptables/nft.c')
-rw-r--r-- | iptables/nft.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/iptables/nft.c b/iptables/nft.c index 7f9eb7f0..37c017f9 100644 --- a/iptables/nft.c +++ b/iptables/nft.c @@ -1539,7 +1539,7 @@ next: err: /* chain not found */ - if (deleted_ctr == 0) { + if (chain != NULL && deleted_ctr == 0) { ret = -1; errno = ENOENT; } |