]> git.proxmox.com Git - mirror_iproute2.git/commit - tc/m_xt.c
tc: m_xt: Prevent a segfault in libipt
authorPhil Sutter <psutter@redhat.com>
Tue, 23 May 2017 13:40:57 +0000 (15:40 +0200)
committerStephen Hemminger <stephen@networkplumber.org>
Wed, 31 May 2017 00:38:19 +0000 (17:38 -0700)
commitf6fc1055e41a8a924313c336b39b9ffe0c86938b
treeb0a6946cd6b2717854e39153cf5eb55e9f539d0e
parentd315b706e9d4a550096140aa298d46b2aa7733e9
tc: m_xt: Prevent a segfault in libipt

This happens with NAT targets, such as SNAT, DNAT and MASQUERADE. These
are still not usable with this patch, but at least tc doesn't crash
anymore when one tries to use them.

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