aboutsummaryrefslogtreecommitdiffstats
path: root/vnet/vnet/l2tp/decap.c
diff options
context:
space:
mode:
authorDave Barach <dave@barachs.net>2016-11-22 15:23:41 -0500
committerDamjan Marion <dmarion.lists@gmail.com>2016-11-22 21:25:47 +0000
commit7afe9e38269a30682a5e392b0e876e18d1465c31 (patch)
tree8d627653a17e8a1c651975c77f568f4ff4d69b0e /vnet/vnet/l2tp/decap.c
parentd28bc62a726c51bcfb9b90a6dd381b4727421004 (diff)
Fix coverity warnings, VPP-486
Change-Id: I4ec49e116fdb418ebf9d84000f2a0cec1cf78b14 Signed-off-by: Dave Barach <dave@barachs.net>
Diffstat (limited to 'vnet/vnet/l2tp/decap.c')
-rw-r--r--vnet/vnet/l2tp/decap.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/vnet/vnet/l2tp/decap.c b/vnet/vnet/l2tp/decap.c
index ee307b642d8..e8986935e93 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);
}
}