diff options
author | Florian Westphal <fw@strlen.de> | 2015-06-26 10:50:44 +0200 |
---|---|---|
committer | Pablo Neira Ayuso <pablo@netfilter.org> | 2015-06-30 02:06:36 +0200 |
commit | 7feb84a9cce184ce5bb2b6dbbebfbacf16403fb0 (patch) | |
tree | 4713acdb69d8ff5c093a581c96581714f1807a78 /src/netlink_linearize.c | |
parent | 1eb09e0de322543c9437d43cae8528db7484d8a3 (diff) |
datatype: avoid crash in debug mode when printing integers
nft -i --debug=all
nft> add rule ip filter foo mark 42
dies with sigfpe; seems mpz doesn't like len 0:
#1 0x0805f2ee in mpz_export_data (data=0xbfeda588, op=0x9d9fb08, byteorder=BYTEORDER_HOST_ENDIAN, len=0) at gmputil.c:115
After patch this prints 0x0000002a.
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Diffstat (limited to 'src/netlink_linearize.c')
0 files changed, 0 insertions, 0 deletions