ipsec: fix sa bind cli

Small mistake was made, reported by coverty scan.

Type: fix
Change-Id: I98ca16c0275a94b2def99831f9353d4ff3fe93a9
Signed-off-by: Maxime Peim <mpeim@cisco.com>
This commit is contained in:
Maxime Peim
2023-07-03 09:42:58 +02:00
committed by Beno�t Ganne
parent 2652867480
commit f902ba534a

View File

@ -229,7 +229,7 @@ ipsec_sa_bind_cli (vlib_main_t *vm, unformat_input_t *input,
{
if (unformat (line_input, "unbind"))
bind = 0;
else if (id != ~0 && unformat (line_input, "%u", &id))
else if (id == ~0 && unformat (line_input, "%u", &id))
;
else if (unformat (line_input, "%u", &worker))
;