diff options
Diffstat (limited to 'iptables/iptables.c')
-rw-r--r-- | iptables/iptables.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/iptables/iptables.c b/iptables/iptables.c index e935f651..96cea64d 100644 --- a/iptables/iptables.c +++ b/iptables/iptables.c @@ -1295,7 +1295,10 @@ static void command_jump(struct iptables_command_state *cs) cs->target->t = xtables_calloc(1, size); cs->target->t->u.target_size = size; - strcpy(cs->target->t->u.user.name, cs->target->real_name); + if (cs->target->real_name != NULL) + strcpy(cs->target->t->u.user.name, cs->jumpto); + else + strcpy(cs->target->t->u.user.name, cs->target->real_name); cs->target->t->u.user.revision = cs->target->revision; if (cs->target->real_name != cs->target->name) /* Alias support for userspace side */ |