diff options
author | Wu Zheng <wu.zheng@intel.com> | 2016-01-28 18:04:17 +0800 |
---|---|---|
committer | Patrik Flykt <patrik.flykt@linux.intel.com> | 2016-01-28 12:55:51 +0200 |
commit | acea08a0e4234a4c1a87bedc087c73ff36de0c7b (patch) | |
tree | 014f336b946df5c2c9625f901b227df7a530869d | |
parent | 754cc1678f5c61501299bbde70a73c58d691609b (diff) | |
download | connman-acea08a0e4234a4c1a87bedc087c73ff36de0c7b.tar.gz |
iptables: Add missing function item of xtables to match iptables 1.6
The struct of xtables_globals has been modified in iptables 1.6.
If connman runs with iptables 1.6, it can crash.
Program received signal SIGSEGV, Segmentation fault.
0x00000000 in ?? ()
0xb7dea89c in xtables_find_target () from /usr/lib/libxtables.so.11
0xb7deac1c in ?? () from /usr/lib/libxtables.so.11
0xb7dea793 in xtables_find_target () from /usr/lib/libxtables.so.11
The the missing function item of xtables is added to xtables_globals.
-rw-r--r-- | src/iptables.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/iptables.c b/src/iptables.c index bc0c763f..5ef757a3 100644 --- a/src/iptables.c +++ b/src/iptables.c @@ -1566,6 +1566,9 @@ struct xtables_globals iptables_globals = { .option_offset = 0, .opts = iptables_opts, .orig_opts = iptables_opts, +#if XTABLES_VERSION_CODE > 10 + .compat_rev = xtables_compatible_revision, +#endif }; static struct xtables_target *prepare_target(struct connman_iptables *table, |