]> git.proxmox.com Git - mirror_iproute2.git/commit
tc: m_xt: Fix segfault with iptables-1.6.0
authorPhil Sutter <phil@nwl.cc>
Thu, 12 Jan 2017 14:22:49 +0000 (15:22 +0100)
committerStephen Hemminger <stephen@networkplumber.org>
Fri, 13 Jan 2017 01:32:26 +0000 (17:32 -0800)
commit97a02cabefb2e2dcfe27f89943709afa84be5525
treeb4713e6f80d9f76d1e04c05c59eb69b70cde1121
parent3bad1dbb2065bf40b7a561fef751ce96f1d2b122
tc: m_xt: Fix segfault with iptables-1.6.0

Said iptables version introduced struct xtables_globals field
'compat_rev', a function pointer. Initializing it is mandatory as
libxtables calls it without existence check.

Without this, tc segfaults when using the xt action like so:

| tc filter add dev d0 parent ffff: u32 match u32 0 0 \
| action xt -j MARK --set-mark 20

Signed-off-by: Phil Sutter <phil@nwl.cc>
tc/m_xt.c