Fix unused bits handling for ip addresses
authortb <tb@openbsd.org>
Fri, 13 May 2022 06:18:21 +0000 (06:18 +0000)
committertb <tb@openbsd.org>
Fri, 13 May 2022 06:18:21 +0000 (06:18 +0000)
commit9eb589bc5493e44c069fba6ce9702fecf50eda64
treed0539c7891c4cbf5565330a151738a25e21cc64d
parent833d79f65feb26cf3701deff24217db1bf20211d
Fix unused bits handling for ip addresses

If ASN1_STRING_FLAG_BITS_LEFT is set, only the lower three bits of the
flags represent the unused bits. Other flags have nothing to with
lengths, so stop interpreting them as such and throwing strange errors.

ok claudio
usr.sbin/rpki-client/ip.c