http_test.c: Fix minor Coverity issue CID
@@ -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)
