Projects
openEuler:22.03:LTS:LoongArch
iptables
_service:tar_scm_kernel_repo:backport-libxtable...
Sign Up
Log In
Username
Password
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File _service:tar_scm_kernel_repo:backport-libxtables-Fix-memleak-in-xtopt_parse_hostmask.patch of Package iptables
From ffe88f8f01263687e82ef4d3d2bdc0cb5444711e Mon Sep 17 00:00:00 2001 From: Phil Sutter <phil@nwl.cc> Date: Wed, 2 Jun 2021 11:04:30 +0200 Subject: 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> Conflict:NA Reference:https://git.netfilter.org/iptables/commit/?id=ffe88f8f01263687e82ef4d3d2bdc0cb5444711e --- libxtables/xtoptions.c | 1 + 1 file changed, 1 insertion(+) diff --git a/libxtables/xtoptions.c b/libxtables/xtoptions.c index d329f2ff..0dcdf607 100644 --- a/libxtables/xtoptions.c +++ b/libxtables/xtoptions.c @@ -763,6 +763,7 @@ static void xtopt_parse_hostmask(struct xt_option_call *cb) cb->arg = p; xtopt_parse_plenmask(cb); cb->arg = orig_arg; + free(work); } static void xtopt_parse_ethermac(struct xt_option_call *cb) -- cgit v1.2.3
Locations
Projects
Search
Status Monitor
Help
Open Build Service
OBS Manuals
API Documentation
OBS Portal
Reporting a Bug
Contact
Mailing List
Forums
Chat (IRC)
Twitter
Open Build Service (OBS)
is an
openSUSE project
.