]> git.ipfire.org Git - thirdparty/iptables.git/commit
libxtables: reorder .version member
authorJan Engelhardt <jengelh@medozas.de>
Sun, 29 Mar 2009 22:44:46 +0000 (00:44 +0200)
committerJan Engelhardt <jengelh@medozas.de>
Fri, 3 Apr 2009 18:51:31 +0000 (20:51 +0200)
commitc4edfa63eda06f02cc5bc1a65d366c55bd2eda30
tree88c8994afd5ab8413d6ed23944af6ab2858d1ca8
parentcdf51d0183213c4bcac9ef4818155c1d3fbb897e
libxtables: reorder .version member

When the structure's layout changes, as it did between v1.4.1 and
v1.4.2, trying to compare the version string makes iptables segfault
while it tries to determine whether the module is compatible in the
first place.

By moving the member to a known offset in the struct and keeping it
there, objects (both iptables and 3rd party) compiled from this
commit onwards will avoid the segfault.

Signed-off-by: Jan Engelhardt <jengelh@medozas.de>
configure.ac
include/xtables.h.in