From: Victor Julien Date: Tue, 3 Apr 2012 18:18:08 +0000 (+0200) Subject: ipv6: make sure we pass the defragged packet from the ipv6 layer to the decoder. X-Git-Tag: suricata-1.3beta1~5 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=07945f04cec2363e6269c3d9884f18f4efda53c5;p=thirdparty%2Fsuricata.git ipv6: make sure we pass the defragged packet from the ipv6 layer to the decoder. --- diff --git a/src/decode-ipv6.c b/src/decode-ipv6.c index b147dd4a9a..a29540fa8a 100644 --- a/src/decode-ipv6.c +++ b/src/decode-ipv6.c @@ -488,7 +488,7 @@ void DecodeIPV6(ThreadVars *tv, DecodeThreadVars *dtv, Packet *p, uint8_t *pkt, if (IPV6_EXTHDR_ISSET_FH(p)) { Packet *rp = Defrag(tv, dtv, NULL, p); if (rp != NULL) { - DecodeIPV6(tv, dtv, rp, GET_PKT_DATA(rp), GET_PKT_LEN(rp), pq); + DecodeIPV6(tv, dtv, rp, (uint8_t *)rp->ip6h, IPV6_GET_PLEN(rp) + IPV6_HEADER_LEN, pq); PacketEnqueue(pq, rp); /* Not really a tunnel packet, but we're piggybacking that