gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[GNUnet-SVN] [gnurl] 28/153: wolfSSL/CyaSSL: Fix memory leak in Curl_cya


From: gnunet
Subject: [GNUnet-SVN] [gnurl] 28/153: wolfSSL/CyaSSL: Fix memory leak in Curl_cyassl_random
Date: Tue, 11 Sep 2018 12:51:39 +0200

This is an automated email from the git hooks/post-receive script.

ng0 pushed a commit to branch master
in repository gnurl.

commit 10d8f3f1344b958a9bea3b3d9f607bc624bce410
Author: Carie Pointer <address@hidden>
AuthorDate: Fri Jul 20 13:00:09 2018 -0700

    wolfSSL/CyaSSL: Fix memory leak in Curl_cyassl_random
    
    RNG structure must be freed by call to FreeRng after its use in
    Curl_cyassl_random. This call fixes Valgrind failures when running the
    test suite with wolfSSL.
    
    Closes #2784
---
 lib/vtls/cyassl.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/lib/vtls/cyassl.c b/lib/vtls/cyassl.c
index 0e940487a..e10398ac3 100644
--- a/lib/vtls/cyassl.c
+++ b/lib/vtls/cyassl.c
@@ -968,6 +968,8 @@ static CURLcode Curl_cyassl_random(struct Curl_easy *data,
     return CURLE_FAILED_INIT;
   if(RNG_GenerateBlock(&rng, entropy, (unsigned)length))
     return CURLE_FAILED_INIT;
+  if(FreeRng(&rng))
+    return CURLE_FAILED_INIT;
   return CURLE_OK;
 }
 

-- 
To stop receiving notification emails like this one, please contact
address@hidden



reply via email to

[Prev in Thread] Current Thread [Next in Thread]