curl_osslq: error out properly if BIO_ADDR_rawmake() fails

Reported-by: Joshua Rogers
Closes #18878
This commit is contained in:
Daniel Stenberg 2025-10-06 12:27:36 +02:00
parent 22ae8ac874
commit 3517053cf7
No known key found for this signature in database
GPG key ID: 5CC908FDB71E12C2

View file

@ -185,6 +185,7 @@ static CURLcode make_bio_addr(BIO_ADDR **pbio_addr,
(struct sockaddr_in6 * const)CURL_UNCONST(&addr->curl_sa_addr);
if(!BIO_ADDR_rawmake(bio_addr, AF_INET6, &sin->sin6_addr,
sizeof(sin->sin6_addr), sin->sin6_port)) {
goto out;
}
result = CURLE_OK;
break;