From 9c7768cd8820c80a452211f88dd1339d41f22a80 Mon Sep 17 00:00:00 2001 From: Viktor Szakats Date: Mon, 4 Mar 2024 17:07:40 +0000 Subject: [PATCH] openssl-quic: fix BIO leak and Windows warning Caused by an accidentally duplicated line in d6825df334def106f735ce7e0c1a2ea87bddffb0. ``` .../lib/vquic/curl_osslq.c:1095:30: warning: implicit conversion loses integer precision: 'curl_socket_t' (aka 'unsigned long long') to 'int' [-Wshorten-64-to-32] 1095 | bio = BIO_new_dgram(ctx->q.sockfd, BIO_NOCLOSE); | ~~~~~~~~~~~~~ ~~~~~~~^~~~~~ 1 warning and 2 errors generated. ``` Reviewed-by: Stefan Eissing Closes #13043 --- lib/vquic/curl_osslq.c | 1 - 1 file changed, 1 deletion(-) diff --git a/lib/vquic/curl_osslq.c b/lib/vquic/curl_osslq.c index a09adcb64..0e5606d75 100644 --- a/lib/vquic/curl_osslq.c +++ b/lib/vquic/curl_osslq.c @@ -1092,7 +1092,6 @@ static CURLcode cf_osslq_ctx_start(struct Curl_cfilter *cf, #else bio = BIO_new_dgram(ctx->q.sockfd, BIO_NOCLOSE); #endif - bio = BIO_new_dgram(ctx->q.sockfd, BIO_NOCLOSE); if(!bio) { result = CURLE_OUT_OF_MEMORY; goto out;