diff options
-rw-r--r-- | test/http_test.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/test/http_test.c b/test/http_test.c index ef0a1d4bf0..e59ef63833 100644 --- a/test/http_test.c +++ b/test/http_test.c @@ -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) |