mirror of
https://github.com/openssl/openssl.git
synced 2025-02-17 14:32:04 +08:00
http_test.c: Fix minor Coverity issue CID 1473608
Reviewed-by: Tomas Mraz <tomas@openssl.org> (Merged from https://github.com/openssl/openssl/pull/14460)
This commit is contained in:
parent
3e6a0d5738
commit
b6a06b13a4
@ -142,7 +142,8 @@ static int test_http_url_ok(const char *url, int exp_ssl, const char *exp_host,
|
||||
int exp_num, num, ssl;
|
||||
int res;
|
||||
|
||||
TEST_int_eq(sscanf(exp_port, "%d", &exp_num), 1);
|
||||
if (!TEST_int_eq(sscanf(exp_port, "%d", &exp_num), 1))
|
||||
return 0;
|
||||
res = TEST_true(OSSL_HTTP_parse_url(url, &ssl, &user, &host, &port, &num,
|
||||
&path, &query, &frag))
|
||||
&& TEST_str_eq(host, exp_host)
|
||||
|
Loading…
Reference in New Issue
Block a user