]> git.ipfire.org Git - thirdparty/curl.git/commitdiff
openssl-quic: fix BIO leak and Windows warning
authorViktor Szakats <commit@vsz.me>
Mon, 4 Mar 2024 17:07:40 +0000 (17:07 +0000)
committerViktor Szakats <commit@vsz.me>
Tue, 5 Mar 2024 10:54:08 +0000 (10:54 +0000)
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

index a09adcb6441b1b03b74640ffa806b32bfd67cf3c..0e5606d75e30d7ea0d54ae7eaa32253ef6c28881 100644 (file)
@@ -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;