]> git.ipfire.org Git - thirdparty/nftables.git/commit
datatype: revert "fix crash if wrong integer type is passed"
authorPatrick McHardy <kaber@trash.net>
Fri, 10 Jan 2014 09:28:37 +0000 (09:28 +0000)
committerPatrick McHardy <kaber@trash.net>
Fri, 10 Jan 2014 09:28:37 +0000 (09:28 +0000)
commitaed3e22a4fd7ef4ae7c249cfb9f71387df14ff73
treeb2aabb5f192a3329821388ea44027376b8926a84
parent806f8bba0a611fc0ce5b3104b929ce441f2b6f77
datatype: revert "fix crash if wrong integer type is passed"

Revert commit a320531e7:

We have generic type checks that handle this case just fine and indeed
the bugzilla entry mentioned in the reverted patch states:

BUG: invalid input descriptor type 538976288
nft: src/erec.c:100: erec_print: Assertion `0' failed.
Abandon

So the problem is not related to datatypes at all and generic type
checking works perfectly fine:

<cmdline>:1:52-57: Error: datatype mismatch, expected Ethernet protocol, expression has type Internet protocol
add rule ip6 filter input position 4 meta protocol icmpv6 accept
                                     ~~~~~~~~~~~~~ ^^^^^^

Signed-off-by: Patrick McHardy <kaber@trash.net>
src/datatype.c