]> granicus.if.org Git - curl/commitdiff
getinfo: Fix syntax error when mbedTLS
authorJay Satiro <raysatiro@yahoo.com>
Sun, 28 Feb 2016 21:05:38 +0000 (16:05 -0500)
committerJay Satiro <raysatiro@yahoo.com>
Sun, 28 Feb 2016 21:05:38 +0000 (16:05 -0500)
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

index 117d513a5ad49a375a739d9d9a2fe5edba98e767..39189cb6019952474c3c4aa95d80fd472724ff74 100644 (file)
@@ -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)