From 0b90564c5082d602d6bc0618f4a285ab45b22c4b Mon Sep 17 00:00:00 2001 From: Pablo Neira Date: Thu, 17 Nov 2005 13:04:49 +0000 Subject: only set revisions on real targets, not on jumps. (Pablo Neira) --- iptables.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'iptables.c') 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); } -- cgit v1.2.3