summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarcel Raad <raad@teamviewer.com>2017-04-11 12:55:23 +0200
committerMarcel Raad <raad@teamviewer.com>2017-04-11 12:56:57 +0200
commit580da62d84ba5077f420732c63da718bce4cb96e (patch)
treee8ab8c4561b74b5dc44a7a1dcb61cf77d0944c3f
parentaa573c3c55cda72ec5ef677d87f6f46a53385f0c (diff)
downloadcurl-580da62d84ba5077f420732c63da718bce4cb96e.tar.gz
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
-rw-r--r--lib/vtls/polarssl.c2
1 files changed, 1 insertions, 1 deletions
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) {