HomeFreeBSD

ipsec: fix edge case detection in key_do_getnewspi

Description

ipsec: fix edge case detection in key_do_getnewspi

The 'count' variable would end up being -1 post loop, while the
following condition would check for 0 instead.

PR: 258849
Reported by: Herbie.Robinson@stratus.com
Reviewed by: ae
Sponsored by: Rubicon Communications, LLC ("Netgate")
Differential Revision: https://reviews.freebsd.org/D32826

Details

Provenance
mjgAuthored on Nov 3 2021, 2:00 PM
Reviewer
ae
Differential Revision
D32826: ipsec: serialize SPI allocation
Parents
rGc28e39c3d6d1: Fix a common typo in syctl descriptions
Branches
Unknown
Tags
Unknown