Skip to content

Commit 972403f

Browse files
committed
Update xshared.c
1 parent a31f04a commit 972403f

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

ipthelper/xshared.c

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -196,12 +196,12 @@ int command_default(struct iptables_command_state *cs,
196196
old = (existing == gl->orig_opts) ? NULL : existing;
197197

198198
if (m->x6_options != NULL)
199-
gl->opts = xtables_options_xfrm(gl->orig_opts,
199+
gl->opts = xtables_options_xfrm(gl->opts,
200200
old,
201201
m->x6_options,
202202
&m->option_offset);
203203
else
204-
gl->opts = xtables_merge_options(gl->orig_opts,
204+
gl->opts = xtables_merge_options(gl->opts,
205205
old,
206206
m->extra_opts,
207207
&m->option_offset);
@@ -614,10 +614,10 @@ void command_match(struct iptables_command_state *cs)
614614

615615
old = (existing == xt_params->orig_opts) ? NULL : existing;
616616
if (m->x6_options != NULL) {
617-
opts = xtables_options_xfrm(xt_params->orig_opts, old,
617+
opts = xtables_options_xfrm(xt_params->opts, old,
618618
m->x6_options, &m->option_offset);
619619
} else if (m->extra_opts != NULL) {
620-
opts = xtables_merge_options(xt_params->orig_opts, old,
620+
opts = xtables_merge_options(xt_params->opts, old,
621621
m->extra_opts, &m->option_offset);
622622
} else {
623623
return;
@@ -687,11 +687,11 @@ void command_jump(struct iptables_command_state *cs)
687687

688688
old = (existing == xt_params->orig_opts) ? NULL : existing;
689689
if (cs->target->x6_options != NULL)
690-
opts = xtables_options_xfrm(xt_params->orig_opts, old,
690+
opts = xtables_options_xfrm(xt_params->opts, old,
691691
cs->target->x6_options,
692692
&cs->target->option_offset);
693693
else if (cs->target->extra_opts != NULL)
694-
opts = xtables_merge_options(xt_params->orig_opts, old,
694+
opts = xtables_merge_options(xt_params->opts, old,
695695
cs->target->extra_opts,
696696
&cs->target->option_offset);
697697
else

0 commit comments

Comments
 (0)