summaryrefslogtreecommitdiff
path: root/lib/vtls
diff options
context:
space:
mode:
authorMichael Forney <mforney@mforney.org>2021-05-25 23:42:07 -0700
committerDaniel Stenberg <daniel@haxx.se>2021-05-26 14:43:40 +0200
commita03ea6223950002eba8b1ef0df3133c62f387d6b (patch)
tree4c3dc7e37310ef801e0f425b7e3145ce786f150a /lib/vtls
parent6b951a6928811507d493303b2878e848c077b471 (diff)
downloadcurl-a03ea6223950002eba8b1ef0df3133c62f387d6b.tar.gz
bearssl: remove incorrect const on variable that is modified
hostname may be set to NULL later on in this function if it is an IP address. Closes #7133
Diffstat (limited to 'lib/vtls')
-rw-r--r--lib/vtls/bearssl.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/vtls/bearssl.c b/lib/vtls/bearssl.c
index 7f729713d..40a5e7879 100644
--- a/lib/vtls/bearssl.c
+++ b/lib/vtls/bearssl.c
@@ -300,7 +300,7 @@ static CURLcode bearssl_connect_step1(struct Curl_easy *data,
struct ssl_connect_data *connssl = &conn->ssl[sockindex];
struct ssl_backend_data *backend = connssl->backend;
const char * const ssl_cafile = SSL_CONN_CONFIG(CAfile);
- const char * const hostname = SSL_HOST_NAME();
+ const char *hostname = SSL_HOST_NAME();
const bool verifypeer = SSL_CONN_CONFIG(verifypeer);
const bool verifyhost = SSL_CONN_CONFIG(verifyhost);
CURLcode ret;