From 4a2d4eef5a544a393ad186eff8ec25ce575b8390 Mon Sep 17 00:00:00 2001 From: Victor Julien Date: Fri, 20 May 2011 16:35:51 +0200 Subject: [PATCH] Properly reset IPv6 extension headers structure. --- src/decode-ipv6.h | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/decode-ipv6.h b/src/decode-ipv6.h index 28b6617d1d..876aa47180 100644 --- a/src/decode-ipv6.h +++ b/src/decode-ipv6.h @@ -129,6 +129,14 @@ typedef struct IPV6Vars_ (p)->ip6c.hlim = 0; \ (p)->ip6vars.ip_opts_len = 0; \ (p)->ip6vars.l4proto = 0; \ + (p)->ip6eh.ip6fh = NULL; \ + (p)->ip6eh.fh_offset = 0; \ + (p)->ip6eh.ip6rh = NULL; \ + (p)->ip6eh.ip6eh = NULL; \ + (p)->ip6eh.ip6dh1 = NULL; \ + (p)->ip6eh.ip6dh2 = NULL; \ + (p)->ip6eh.ip6hh = NULL; \ + (p)->ip6eh.ip6_exthdrs_cnt = 0; \ } while (0) /* Fragment header */