mirror of
https://github.com/openssl/openssl.git
synced 2024-11-27 05:21:51 +08:00
test: fix coverity 1469427 Improper use of negative value (NEGATIVE_RETURNS)
Reviewed-by: Tomas Mraz <tomas@openssl.org> (Merged from https://github.com/openssl/openssl/pull/15943)
This commit is contained in:
parent
10af976962
commit
01fb4bff9b
@ -289,7 +289,8 @@ static int test_membio_str_eq(BIO *bio_provided, BIO *bio_legacy)
|
||||
long len_provided = BIO_get_mem_data(bio_provided, &str_provided);
|
||||
long len_legacy = BIO_get_mem_data(bio_legacy, &str_legacy);
|
||||
|
||||
return TEST_long_ge(len_provided, 0)
|
||||
return TEST_long_ge(len_legacy, 0)
|
||||
&& TEST_long_ge(len_provided, 0)
|
||||
&& TEST_strn2_eq(str_provided, len_provided,
|
||||
str_legacy, len_legacy);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user