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
This commit is contained in:
Michael Forney 2021-05-25 23:42:07 -07:00 committed by Daniel Stenberg
parent 6b951a6928
commit a03ea62239
No known key found for this signature in database
GPG Key ID: 5CC908FDB71E12C2

View File

@ -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;