ipsec: fix a logic error in key_do_getnewspi
This commit is contained in:
parent
253ecb389e
commit
509f1a0f40
@ -5055,7 +5055,7 @@ key_do_getnewspi(struct sadb_spirange *spirange, struct secasindex *saidx)
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (min == max) {
|
if (min == max) {
|
||||||
if (!key_checkspidup(htonl(min))) {
|
if (key_checkspidup(htonl(min))) {
|
||||||
ipseclog((LOG_DEBUG, "%s: SPI %u exists already.\n",
|
ipseclog((LOG_DEBUG, "%s: SPI %u exists already.\n",
|
||||||
__func__, min));
|
__func__, min));
|
||||||
return 0;
|
return 0;
|
||||||
|
Loading…
Reference in New Issue
Block a user