From: Eric Leblond Date: Thu, 16 May 2013 08:22:27 +0000 (+0200) Subject: coccinelle: update pkt not set test X-Git-Tag: suricata-2.0beta1~144 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=41ebfa77afba6814248a1324951d24f2f3076170;p=thirdparty%2Fsuricata.git coccinelle: update pkt not set test This patch updates the test to add the support of initialization of a Packet via the INITIALIZE macro. --- diff --git a/qa/coccinelle/pktnotset-packet.cocci b/qa/coccinelle/pktnotset-packet.cocci index 61c00dcefe..ab6a98c1d0 100644 --- a/qa/coccinelle/pktnotset-packet.cocci +++ b/qa/coccinelle/pktnotset-packet.cocci @@ -14,7 +14,11 @@ position zeroed.p1; memset(p@p1, 0, ...); ... when != p +( p->pkt +| +PACKET_INITIALIZE(p) +) @script:python depends on !isset@ p1 << zeroed.p1;