From 01e955bc2774c089051fcd39860eee4662c96497 Mon Sep 17 00:00:00 2001 From: Eric Leblond Date: Mon, 28 Feb 2011 17:44:33 +0100 Subject: [PATCH] Add SCTP to packet validation Validation util was missing a test on sctph which can not be null for SCTP packets. --- src/util-validate.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/util-validate.h b/src/util-validate.h index c93cb8b8c4..670f3acf25 100644 --- a/src/util-validate.h +++ b/src/util-validate.h @@ -45,6 +45,8 @@ BUG_ON((p)->udph == NULL); \ } else if ((p)->proto == IPPROTO_ICMP) { \ BUG_ON((p)->icmpv4h == NULL); \ + } else if ((p)->proto == IPPROTO_SCTP) { \ + BUG_ON((p)->sctph == NULL); \ } else if ((p)->proto == IPPROTO_ICMPV6) { \ BUG_ON((p)->icmpv6h == NULL); \ } \