]> git.ipfire.org Git - thirdparty/iptables.git/commit
The call to free_opts() in merge_options() is invalid C. The oldopts
authorMarcus Sundberg <marcus@ingate.com>
Fri, 29 Jul 2005 13:26:35 +0000 (13:26 +0000)
committerHarald Welte <laforge@gnumonks.org>
Fri, 29 Jul 2005 13:26:35 +0000 (13:26 +0000)
commitd91ed751b3933506ba5ab985ca02db430cd3592c
tree3f06da4c25e24f5d3c9bdb1f83376edfbed13199
parent7bdfca450990ca68ccfc4c54acb14d3ea0fa8582
The call to free_opts() in merge_options() is invalid C. The oldopts
argument always refers to the memory pointed to by the opts global,
which may be freed by the call to free_opts(), but oldopts is used
after the free_opts() call. This patch makes sure we don't use freed
memory.  (Marcus Sundberg <marcus@ingate.com>)

ip6tables merge by myself.
ip6tables.c
iptables.c