From ae7d6b715448101caf99ea3555c7b7448711676e Mon Sep 17 00:00:00 2001 From: Jay Satiro Date: Sun, 28 Feb 2016 16:05:38 -0500 Subject: [PATCH] getinfo: Fix syntax error when mbedTLS The assignment of the mbedTLS TLS session info in the parent commit was incorrect. Change the assignment to a pointer to the session structure. --- lib/getinfo.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/getinfo.c b/lib/getinfo.c index 117d513a5..39189cb60 100644 --- a/lib/getinfo.c +++ b/lib/getinfo.c @@ -307,7 +307,7 @@ static CURLcode getinfo_slist(struct SessionHandle *data, CURLINFO info, #elif defined(USE_GSKIT) tsi->internals = (void *)conn->ssl[i].handle; #elif defined(USE_MBEDTLS) - tsi->internals = (void *)conn->ssl[i].ssn; + tsi->internals = (void *)&conn->ssl[i].ssn; #elif defined(USE_NSS) tsi->internals = (void *)conn->ssl[i].handle; #elif defined(USE_OPENSSL)