summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPablo Neira <pablo@eurodev.net>2005-11-17 13:04:49 +0000
committerHarald Welte <laforge@gnumonks.org>2005-11-17 13:04:49 +0000
commit0b90564c5082d602d6bc0618f4a285ab45b22c4b (patch)
tree574831a807cd9bdd61f3ee7736aed3dd2e66fc37
parentd6ba6f57658ee2fee7cf763259e8a0c601479989 (diff)
only set revisions on real targets, not on jumps. (Pablo Neira)
-rw-r--r--iptables.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/iptables.c b/iptables.c
index cc47e980..cc8d423c 100644
--- a/iptables.c
+++ b/iptables.c
@@ -2394,7 +2394,9 @@ int do_command(int argc, char *argv[], char **table, iptc_handle_t *handle)
target->t = fw_calloc(1, size);
target->t->u.target_size = size;
strcpy(target->t->u.user.name, jumpto);
- set_revision(target->t->u.user.name, target->revision);
+ if (!iptc_is_chain(jumpto, *handle))
+ set_revision(target->t->u.user.name,
+ target->revision);
if (target->init != NULL)
target->init(target->t, &fw.nfcache);
}