]> git.ipfire.org Git - thirdparty/strongswan.git/commit
libipsec: Enforce a minimum of 256 for SPIs
authorTobias Brunner <tobias@strongswan.org>
Thu, 2 Mar 2017 10:51:27 +0000 (11:51 +0100)
committerTobias Brunner <tobias@strongswan.org>
Thu, 2 Mar 2017 10:54:39 +0000 (11:54 +0100)
commit9d8192bfcd74912600abc9417e392a0cb469260e
tree8e7648cf3b650aef66cf2f6b108c07d49c35d647
parentbb05b251b2ffbf97853796631319d61089926943
libipsec: Enforce a minimum of 256 for SPIs

RFC 4303 reserves the SPIs between 1 and 255 for future use.  This also
avoids an overflow and a division by zero if spi_min is 0 and spi_max is
0xffffffff.
src/libipsec/ipsec_sa_mgr.c