]> git.ipfire.org Git - thirdparty/curl.git/commitdiff
wolfssl: clear variable to avoid uninitialized use
authorDaniel Stenberg <daniel@haxx.se>
Sat, 18 Oct 2025 21:41:26 +0000 (23:41 +0200)
committerDaniel Stenberg <daniel@haxx.se>
Sun, 19 Oct 2025 09:08:14 +0000 (11:08 +0200)
Pointed out by ZeroPath
Closes #19126

lib/vtls/wolfssl.c

index d2bb3eb49e81b370416d299476f8318cfe3ccef9..fe63097f9c3a8efc68e85ca524f636eaac37e893 100644 (file)
@@ -357,7 +357,7 @@ static int wssl_bio_cf_in_read(WOLFSSL_BIO *bio, char *buf, int blen)
   struct ssl_connect_data *connssl = cf->ctx;
   struct wssl_ctx *wssl = (struct wssl_ctx *)connssl->backend;
   struct Curl_easy *data = CF_DATA_CURRENT(cf);
-  size_t nread;
+  size_t nread = 0;
   CURLcode result = CURLE_OK;
 
   DEBUGASSERT(data);