mirror of
https://github.com/opnsense/src.git
synced 2026-06-04 22:32:43 -04:00
ipsec: fix a logic error in key_do_getnewspi
This commit is contained in:
parent
253ecb389e
commit
509f1a0f40
1 changed files with 1 additions and 1 deletions
|
|
@ -5055,7 +5055,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;
|
||||
|
|
|
|||
Loading…
Reference in a new issue