misc: remove unused data when IPv6 is not supported

Closes #8430
This commit is contained in:
MAntoniak 2022-02-07 20:47:09 +01:00 committed by Daniel Stenberg
parent ae5e57c304
commit 06eb208126
No known key found for this signature in database
GPG key ID: 5CC908FDB71E12C2
7 changed files with 52 additions and 18 deletions

View file

@ -2109,9 +2109,11 @@ static CURLcode parseurlandfillconn(struct Curl_easy *data,
return CURLE_OUT_OF_MEMORY;
conn->host.name = conn->host.rawalloc;
#ifdef ENABLE_IPV6
if(data->set.scope_id)
/* Override any scope that was set above. */
conn->scope_id = data->set.scope_id;
#endif
return CURLE_OK;
}