]> git.ipfire.org Git - thirdparty/suricata.git/commit
af-packet: fix problem introduced in recent commit 780/head
authorEric Leblond <eric@regit.org>
Fri, 17 Jan 2014 16:43:50 +0000 (17:43 +0100)
committerEric Leblond <eric@regit.org>
Fri, 17 Jan 2014 16:43:50 +0000 (17:43 +0100)
commit82a2dd859b07c492ce78ea6e7e4bb876582f1f54
treed84d1d2d8f8ad3b4c3a67598aa02ab4d3812176e
parentd06a19301210a8296e63aeef19163b180cb8f47f
af-packet: fix problem introduced in recent commit

Logic of patch 98e4a14f6d59fe8928fd6e2af3d9c3e8b42d00bf was correct
but implementation is wrong because TP_STATUS_KERNEL is equal to
zero and thus can not be evaluated in a binary operation. This patch
updates the logic by doing two tests.

Reported-by: Alessandro Guido
src/source-af-packet.c