Add more checks for ROA maxLength values
authorjob <job@openbsd.org>
Wed, 28 Jul 2021 12:32:14 +0000 (12:32 +0000)
committerjob <job@openbsd.org>
Wed, 28 Jul 2021 12:32:14 +0000 (12:32 +0000)
commitc6087d341b00ffef8a2afd836cd0c7b214c2e974
treede456966dd2724c8ca013772c70d694dbd4e0d1b
parent830c96fc52bed6f4c25eb85535b7bc4a6071b6a8
Add more checks for ROA maxLength values

* maxLength may not be zero or negative
* maxLength can't be lower than the prefixlength of ip_addr
* maxLength can't be higher than the maximum prefix length

OK claudio@
usr.sbin/rpki-client/roa.c