diff options
-rw-r--r-- | iptables/nft-shared.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/iptables/nft-shared.c b/iptables/nft-shared.c index 740b61bb..fcc33d28 100644 --- a/iptables/nft-shared.c +++ b/iptables/nft-shared.c @@ -848,7 +848,9 @@ bool compare_targets(struct xtables_target *tg1, struct xtables_target *tg2) if (tg1 == NULL && tg2 == NULL) return true; - if ((tg1 == NULL && tg2 != NULL) || (tg1 != NULL && tg2 == NULL)) + if (tg1 == NULL || tg2 == NULL) + return false; + if (tg1->userspacesize != tg2->userspacesize) return false; if (strcmp(tg1->t->u.user.name, tg2->t->u.user.name) != 0) |