commit | 445745221a21ecb4111c19cfa7f4c2cf4796337f | [log] [tgz] |
---|---|---|
author | Phil Sutter <phil@nwl.cc> | Fri Jun 10 13:42:00 2016 +0200 |
committer | Stephen Hemminger <shemming@brocade.com> | Tue Jun 14 14:35:56 2016 -0700 |
tree | 2b1ca4deb3a6e28858feccd383087735f84fc12f | |
parent | 8b625177ba69985be6673e776c54f45ab8d40e58 [diff] |
tc: m_xt: Prevent segfault with standard targets Iptables standard targets like DROP or REJECT don't implement the print callback in libxtables. Hence the following command would segfault: | tc filter add dev d0 parent ffff: u32 match u32 0 0 action xt -j DROP With this patch standard targets still can't be used (and are not really useful anyway), but at least it doesn't crash anymore. Signed-off-by: Phil Sutter <phil@nwl.cc>