gnunet-svn
[Top][All Lists]
Advanced

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

[GNUnet-SVN] [gnurl] 184/205: polarssl: unbreak build with versions < 1.


From: gnunet
Subject: [GNUnet-SVN] [gnurl] 184/205: polarssl: unbreak build with versions < 1.3.8
Date: Thu, 20 Apr 2017 16:22:04 +0200

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

ng0 pushed a commit to annotated tag gnurl-7.54.0
in repository gnurl.

commit 580da62d84ba5077f420732c63da718bce4cb96e
Author: Marcel Raad <address@hidden>
AuthorDate: Tue Apr 11 12:55:23 2017 +0200

    polarssl: unbreak build with versions < 1.3.8
    
    ssl_session_init was only introduced in version 1.3.8, the penultimate
    version. The function only contains a memset, so replace it with that.
    
    Suggested-by: Jay Satiro
    Fixes https://github.com/curl/curl/issues/1401
---
 lib/vtls/polarssl.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lib/vtls/polarssl.c b/lib/vtls/polarssl.c
index b2fea8a54..e6ad525ea 100644
--- a/lib/vtls/polarssl.c
+++ b/lib/vtls/polarssl.c
@@ -612,7 +612,7 @@ polarssl_connect_step3(struct connectdata *conn,
     if(!our_ssl_sessionid)
       return CURLE_OUT_OF_MEMORY;
 
-    ssl_session_init(our_ssl_sessionid);
+    memset(our_ssl_sessionid, 0, sizeof(ssl_session));
 
     ret = ssl_get_session(&connssl->ssl, our_ssl_sessionid);
     if(ret) {

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



reply via email to

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