diff options
author | Dr. David von Oheimb <David.von.Oheimb@siemens.com> | 2021-11-30 20:06:09 +0100 |
---|---|---|
committer | Tomas Mraz <tomas@openssl.org> | 2021-12-07 11:27:40 +0100 |
commit | 7afec59c66a8028c1cd3b533035927bb8ff4c317 (patch) | |
tree | ecb31b5f0906f968115ed29985f5286f9aa3623b /crypto/http/http_client.c | |
parent | c416b09e36ad505727601f79420156d86af6deed (diff) |
OSSL_HTTP_set1_request(): Fix check for presence of port option and its documentation
For HTTP (not HTTPS) with proxy, server must be given, port is optional
Reviewed-by: Paul Dale <pauli@openssl.org>
Reviewed-by: Tomas Mraz <tomas@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/17186)
(cherry picked from commit 266383b44c4ebce5ddf551547e73ab6eec47805b)
Diffstat (limited to 'crypto/http/http_client.c')
-rw-r--r-- | crypto/http/http_client.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/crypto/http/http_client.c b/crypto/http/http_client.c index 6a8149ba59..23677ca12f 100644 --- a/crypto/http/http_client.c +++ b/crypto/http/http_client.c @@ -971,7 +971,7 @@ int OSSL_HTTP_set1_request(OSSL_HTTP_REQ_CTX *rctx, const char *path, return 0; } use_http_proxy = rctx->proxy != NULL && !rctx->use_ssl; - if (use_http_proxy && (rctx->server == NULL || rctx->port == NULL)) { + if (use_http_proxy && rctx->server == NULL) { ERR_raise(ERR_LIB_HTTP, ERR_R_PASSED_INVALID_ARGUMENT); return 0; } |