]> git.ipfire.org Git - thirdparty/curl.git/commitdiff
curl_osslq: error out properly if BIO_ADDR_rawmake() fails
authorDaniel Stenberg <daniel@haxx.se>
Mon, 6 Oct 2025 10:27:36 +0000 (12:27 +0200)
committerDaniel Stenberg <daniel@haxx.se>
Mon, 6 Oct 2025 21:14:55 +0000 (23:14 +0200)
Reported-by: Joshua Rogers
Closes #18878

lib/vquic/curl_osslq.c

index 0862d688444f78aa73dc6b23e3b4f58f5a65adf7..cda239a57d8426b638161499147575d57ccb1699 100644 (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;