]> git.ipfire.org Git - thirdparty/iptables.git/commit
libxtables: Fix memleak in xtopt_parse_hostmask()
authorPhil Sutter <phil@nwl.cc>
Wed, 2 Jun 2021 09:04:30 +0000 (11:04 +0200)
committerPhil Sutter <phil@nwl.cc>
Mon, 7 Jun 2021 12:50:27 +0000 (14:50 +0200)
commitffe88f8f01263687e82ef4d3d2bdc0cb5444711e
tree51fe7027282b74ad88a0648ed49e7e9fe3b189ae
parent8bb5bcae57c83066c224efa5fd29ed4822a766fc
libxtables: Fix memleak in xtopt_parse_hostmask()

The allocated hostmask duplicate needs to be freed again.

Fixes: 66266abd17adc ("libxtables: XTTYPE_HOSTMASK support")
Signed-off-by: Phil Sutter <phil@nwl.cc>
libxtables/xtoptions.c