mirror of
https://github.com/openssl/openssl.git
synced 2025-03-31 20:10:45 +08:00
Make sure we check the return value of extract_min_max()
Commit 42d7d7dd6 turned this function from returning void to returning an int error code. This instance of calling it was missed. Found by Coverity. Reviewed-by: Rich Salz <rsalz@openssl.org> (Merged from https://github.com/openssl/openssl/pull/5338)
This commit is contained in:
parent
62542d0464
commit
cb1c3d1a27
@ -667,7 +667,9 @@ static int asid_contains(ASIdOrRanges *parent, ASIdOrRanges *child)
|
||||
for (;; p++) {
|
||||
if (p >= sk_ASIdOrRange_num(parent))
|
||||
return 0;
|
||||
extract_min_max(sk_ASIdOrRange_value(parent, p), &p_min, &p_max);
|
||||
if (!extract_min_max(sk_ASIdOrRange_value(parent, p), &p_min,
|
||||
&p_max))
|
||||
return 0;
|
||||
if (ASN1_INTEGER_cmp(p_max, c_max) < 0)
|
||||
continue;
|
||||
if (ASN1_INTEGER_cmp(p_min, c_min) > 0)
|
||||
|
Loading…
x
Reference in New Issue
Block a user