Fix a bug in addr_contains() introduced in OpenSSL commit be71c372
authortb <tb@openbsd.org>
Wed, 5 Jan 2022 07:28:41 +0000 (07:28 +0000)
committertb <tb@openbsd.org>
Wed, 5 Jan 2022 07:28:41 +0000 (07:28 +0000)
commite5e14cfc2866cfac67696e1a98f0cc55d2327596
treeb291e69f79f9799355c1a022c7c8ede49487e6eb
parent5bb7f970340b55be87f9afdae25be1c4ee6b4b0b
Fix a bug in addr_contains() introduced in OpenSSL commit be71c372
by returning 0 instead of -1 on extract_min_max() failure. Callers
would interpret -1 as success of addr_contains().

ok inoguchi jsing
lib/libcrypto/x509/x509_addr.c