summaryrefslogtreecommitdiffstats
path: root/src/plugins/igmp/igmp_query.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/plugins/igmp/igmp_query.c')
-rw-r--r--src/plugins/igmp/igmp_query.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/plugins/igmp/igmp_query.c b/src/plugins/igmp/igmp_query.c
index 1513023df2e..ae9a4d51e95 100644
--- a/src/plugins/igmp/igmp_query.c
+++ b/src/plugins/igmp/igmp_query.c
@@ -36,6 +36,10 @@ igmp_query_mk_source_list (const igmp_membership_query_v3_t * q)
const ip4_address_t *s;
u16 ii, n;
+ /*
+ * we validated this packet when we accepted it in the DP, so
+ * this number is safe to use
+ */
n = clib_net_to_host_u16 (q->n_src_addresses);
if (0 == n)