aboutsummaryrefslogtreecommitdiffstats
path: root/src/vnet/ipsec
diff options
context:
space:
mode:
Diffstat (limited to 'src/vnet/ipsec')
-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))
;