diff options
author | Wenfeng Liu <266lwf@163.com> | 2021-11-24 09:34:32 +0000 |
---|---|---|
committer | Mateusz Guzik <mjg@FreeBSD.org> | 2021-12-19 14:44:52 +0000 |
commit | 19592949abd2953a3c00cda59231113d29d4dd63 (patch) | |
tree | 0c7021248a2ebfead4b459523b888c144d3adfa4 | |
parent | 96787c2ffe6da94e158172428608250e29584a74 (diff) |
ipsec: fix a logic error in key_do_getnewspi
(cherry picked from commit 509f1a0f405daf0e2bdaa5b366d21b77052149c3)
-rw-r--r-- | sys/netipsec/key.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/netipsec/key.c b/sys/netipsec/key.c index 71eaac7f8fa3..b9d867a1d83a 100644 --- a/sys/netipsec/key.c +++ b/sys/netipsec/key.c @@ -5023,7 +5023,7 @@ key_do_getnewspi(struct sadb_spirange *spirange, struct secasindex *saidx) } if (min == max) { - if (!key_checkspidup(htonl(min))) { + if (key_checkspidup(htonl(min))) { ipseclog((LOG_DEBUG, "%s: SPI %u exists already.\n", __func__, min)); return 0; |