From 7afe9e38269a30682a5e392b0e876e18d1465c31 Mon Sep 17 00:00:00 2001 From: Dave Barach Date: Tue, 22 Nov 2016 15:23:41 -0500 Subject: Fix coverity warnings, VPP-486 Change-Id: I4ec49e116fdb418ebf9d84000f2a0cec1cf78b14 Signed-off-by: Dave Barach --- vnet/vnet/l2tp/decap.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'vnet') diff --git a/vnet/vnet/l2tp/decap.c b/vnet/vnet/l2tp/decap.c index ee307b64..e8986935 100644 --- a/vnet/vnet/l2tp/decap.c +++ b/vnet/vnet/l2tp/decap.c @@ -218,8 +218,8 @@ done: else { /* Go to next node on the ip6 configuration chain */ - ASSERT (session); - vnet_feature_next (session->sw_if_index, &next_index, b); + if (PREDICT_TRUE (session != 0)) + vnet_feature_next (session->sw_if_index, &next_index, b); } } -- cgit 1.2.3-korg