diff options
author | Pablo Neira <pablo@eurodev.net> | 2005-11-17 13:04:49 +0000 |
---|---|---|
committer | Harald Welte <laforge@gnumonks.org> | 2005-11-17 13:04:49 +0000 |
commit | 0b90564c5082d602d6bc0618f4a285ab45b22c4b (patch) | |
tree | 574831a807cd9bdd61f3ee7736aed3dd2e66fc37 | |
parent | d6ba6f57658ee2fee7cf763259e8a0c601479989 (diff) |
only set revisions on real targets, not on jumps. (Pablo Neira)
-rw-r--r-- | iptables.c | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -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); } |