aboutsummaryrefslogtreecommitdiffstats
path: root/src/vnet
diff options
context:
space:
mode:
authorMaxime Peim <mpeim@cisco.com>2023-07-03 09:42:58 +0200
committerBeno�t Ganne <bganne@cisco.com>2023-07-27 16:32:27 +0000
commitf902ba534a1c6d9b7350cc2973866e4cd08598af (patch)
tree111146fdbd7351c467d1b3a77f09ea76ea39c7fd /src/vnet
parent2652867480a185ccdeccf9ca9210a1213b82cf26 (diff)
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>
Diffstat (limited to 'src/vnet')
-rw-r--r--src/vnet/ipsec/ipsec_cli.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/vnet/ipsec/ipsec_cli.c b/src/vnet/ipsec/ipsec_cli.c
index d0029ea7fcb..6cb9aba4d8a 100644
--- a/src/vnet/ipsec/ipsec_cli.c
+++ b/src/vnet/ipsec/ipsec_cli.c
@@ -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))
;