aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/igmp/igmp_pkt.c
diff options
context:
space:
mode:
authorNeale Ranns <nranns@cisco.com>2018-07-10 05:26:01 -0700
committerDamjan Marion <dmarion@me.com>2018-07-10 21:23:09 +0000
commit4555bb4ffa750ff5c50f030851fb21881ce285bb (patch)
tree05bd188f5f46ef7683d6a71bae7c374d53cb8791 /src/plugins/igmp/igmp_pkt.c
parentde450cb3cca111c1c8545b41b9e83f1212465a92 (diff)
IGMP: coverity found defects
Change-Id: Id6aba75c30712e9a0ac7b3075bd6cfc49d6bec36 Signed-off-by: Neale Ranns <nranns@cisco.com>
Diffstat (limited to 'src/plugins/igmp/igmp_pkt.c')
-rw-r--r--src/plugins/igmp/igmp_pkt.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/plugins/igmp/igmp_pkt.c b/src/plugins/igmp/igmp_pkt.c
index 5dd829de712..1fd240c7d9a 100644
--- a/src/plugins/igmp/igmp_pkt.c
+++ b/src/plugins/igmp/igmp_pkt.c
@@ -148,6 +148,10 @@ igmp_pkt_tx (igmp_pkt_build_t * bk)
vm = vlib_get_main ();
config = igmp_config_lookup (bk->sw_if_index);
+
+ if (NULL == config)
+ return;
+
f = vlib_get_frame_to_node (vm, ip4_rewrite_mcast_node.index);
to_next = vlib_frame_vector_args (f);