diff options
author | Dr. David von Oheimb <David.von.Oheimb@siemens.com> | 2020-11-13 08:39:14 +0100 |
---|---|---|
committer | Dr. David von Oheimb <David.von.Oheimb@siemens.com> | 2020-11-20 13:36:30 +0100 |
commit | 6fd8313589b3fd55e31f65097007c3c1fdbe5021 (patch) | |
tree | 22aa27b5f5f6cdcf9a779768bba8eaffcda8a3ce /apps/cmp.c | |
parent | 0e7bc901bf4675b5fb05dfdd98647ec141781f45 (diff) |
apps/cmp.c: Improve diagnostics on -server URL parse error
Reviewed-by: Matt Caswell <matt@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/13409)
Diffstat (limited to 'apps/cmp.c')
-rw-r--r-- | apps/cmp.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/apps/cmp.c b/apps/cmp.c index cef625b68f..b1813df9bc 100644 --- a/apps/cmp.c +++ b/apps/cmp.c @@ -1834,8 +1834,10 @@ static int setup_client_ctx(OSSL_CMP_CTX *ctx, ENGINE *engine) CMP_err("missing -server option"); goto err; } - if (!OSSL_HTTP_parse_url(opt_server, &server, &port, &portnum, &path, &ssl)) + if (!OSSL_HTTP_parse_url(opt_server, &server, &port, &portnum, &path, &ssl)) { + CMP_err1("cannot parse -server URL: %s", opt_server); goto err; + } if (ssl && !opt_tls_used) { CMP_err("missing -tls_used option since -server URL indicates https"); goto err; |