bugzilla-daemon at netfilter.org
2013-Jul-28 00:25 UTC
[Bug 836] New: ipset_parse_elem is declared/defined with wrong parameter type
https://bugzilla.netfilter.org/show_bug.cgi?id=836
Summary: ipset_parse_elem is declared/defined with wrong
parameter type
Product: ipset
Version: unspecified
Platform: x86_64
OS/Version: All
Status: NEW
Severity: normal
Priority: P5
Component: default
AssignedTo: netfilter-buglog at lists.netfilter.org
ReportedBy: quentin at armitage.org.uk
Estimated Hours: 0.0
Created attachment 408
--> https://bugzilla.netfilter.org/attachment.cgi?id=408
Patch to change 2nd parameter type of ipset_parse_elem
The only place in ipset where ipset_parse_elem is called is src/ipset.c. The
second parameter to the function call is type->last_elem_optional, which is
of
type bool, but ipset_parse_elem is defined in lib/parse.c with the second
parameter having type enum ipset_opt.
The use in lib/parse.c is clearly as a bool.
A patch is attached.
--
Configure bugmail: https://bugzilla.netfilter.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are watching all bug changes.
bugzilla-daemon at netfilter.org
2013-Aug-01 21:20 UTC
[Bug 836] ipset_parse_elem is declared/defined with wrong parameter type
https://bugzilla.netfilter.org/show_bug.cgi?id=836
Jozsef Kadlecsik <kadlec at netfilter.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
CC| |kadlec at netfilter.org
Resolution| |FIXED
--- Comment #1 from Jozsef Kadlecsik <kadlec at netfilter.org> 2013-08-01
23:20:19 CEST ---
Thanks, your patch is applied and pushed into the ipset git tree.
--
Configure bugmail: https://bugzilla.netfilter.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are watching all bug changes.
Maybe Matching Threads
- [Bug 1139] New: The include guards on the include/libipset/linux_ip_set*.h are wrong
- [Bug 838] New: ipset add foo syslog fails for bitmap:port
- [Bug 842] New: Addition of iptables rule referencing an ipset of the wrong address family does not fail
- [Bug 844] New: Can set apparently invalid netmask for hash:ip
- [Bug 859] New: bitmap:port appears to be using 8 bytes of kernel memory per port, rather than 1 bit.