Fix LISP cp buffer leakage
[vpp.git] / src / vnet / lisp-cp / control.c
index 72af525..59a45ed 100644 (file)
@@ -3136,8 +3136,9 @@ lisp_cp_lookup_inline (vlib_main_t * vm,
                                                   to_next,
                                                   n_left_to_next, pi0,
                                                   next0);
+                 continue;
                }
-             continue;
+             goto done;
            }
 
          /* if we have remote mapping for destination already in map-chache
@@ -3180,6 +3181,7 @@ lisp_cp_lookup_inline (vlib_main_t * vm,
              pkts_mapped++;
            }
 
+       done:
          b0->error = node->errors[LISP_CP_LOOKUP_ERROR_DROP];
          if (PREDICT_FALSE (b0->flags & VLIB_BUFFER_IS_TRACED))
            {