aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEyal Bari <ebari@cisco.com>2018-08-09 12:50:08 +0300
committerNeale Ranns <nranns@cisco.com>2018-08-09 11:58:14 +0000
commit85a2555f0c07bd07ae3344be1a1ada340bf8dc88 (patch)
tree2bd1db2bcd59fb93b382d98f54b9b83d703a91c4
parent7528245795947a7340d3537c6989c0f6a05933f4 (diff)
bfd:fix NULL session free/put
Change-Id: If9f1f8c16c098c453bb53591e50a4cbd7cb192e4 Signed-off-by: Eyal Bari <ebari@cisco.com>
-rw-r--r--src/vnet/bfd/bfd_udp.c1
1 files changed, 0 insertions, 1 deletions
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;