fix unused assignment in setup_connection_internals

This commit is contained in:
Stefan Eissing 2025-07-18 13:28:33 +02:00
parent db49514c45
commit d4fcbfff68
No known key found for this signature in database

View file

@ -2070,21 +2070,14 @@ static CURLcode setup_range(struct Curl_easy *data)
static CURLcode setup_connection_internals(struct Curl_easy *data,
struct connectdata *conn)
{
const struct Curl_handler *p;
const char *hostname;
int port;
CURLcode result;
/* Perform setup complement if some. */
p = conn->handler;
if(p->setup_connection) {
result = (*p->setup_connection)(data, conn);
if(conn->handler->setup_connection) {
result = conn->handler->setup_connection(data, conn);
if(result)
return result;
p = conn->handler; /* May have changed. */
}
/* Now create the destination name */