From 85a2555f0c07bd07ae3344be1a1ada340bf8dc88 Mon Sep 17 00:00:00 2001 From: Eyal Bari Date: Thu, 9 Aug 2018 12:50:08 +0300 Subject: bfd:fix NULL session free/put Change-Id: If9f1f8c16c098c453bb53591e50a4cbd7cb192e4 Signed-off-by: Eyal Bari --- src/vnet/bfd/bfd_udp.c | 1 - 1 file changed, 1 deletion(-) (limited to 'src/vnet/bfd') diff --git a/src/vnet/bfd/bfd_udp.c b/src/vnet/bfd/bfd_udp.c index fa696aa2006..e05f10f395e 100644 --- a/src/vnet/bfd/bfd_udp.c +++ b/src/vnet/bfd/bfd_udp.c @@ -473,7 +473,6 @@ bfd_udp_add_session_internal (bfd_udp_main_t * bum, u32 sw_if_index, bfd_session_t *bs = bfd_get_session (bum->bfd_main, t); if (!bs) { - bfd_put_session (bum->bfd_main, bs); return VNET_API_ERROR_BFD_EAGAIN; } bfd_udp_session_t *bus = &bs->udp; -- cgit 1.2.3-korg