projects
/
openssl.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3e6a0d5
)
http_test.c: Fix minor Coverity issue CID 1473608
author
Dr. David von Oheimb
<David.von.Oheimb@siemens.com>
Mon, 8 Mar 2021 06:58:04 +0000
(07:58 +0100)
committer
Dr. David von Oheimb
<dev@ddvo.net>
Tue, 9 Mar 2021 10:02:41 +0000
(11:02 +0100)
Reviewed-by: Tomas Mraz <tomas@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/14460)
test/http_test.c
patch
|
blob
|
history
diff --git
a/test/http_test.c
b/test/http_test.c
index ef0a1d4bf04c02f890c782bf5db4521636ad88d4..e59ef6383327953000997a284dc02bbd89a3ad71 100644
(file)
--- 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)