aboutsummaryrefslogtreecommitdiffstats
path: root/vnet/vnet/l2tp/decap.c
diff options
context:
space:
mode:
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);
}
}