From 1a9ddf0f363beb84c37d4b8c3417b1fa52b74a40 Mon Sep 17 00:00:00 2001 From: Matthias Wachs Date: Wed, 21 Jul 2010 06:55:21 +0000 Subject: [PATCH] --- src/transport/plugin_transport_http.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/transport/plugin_transport_http.c b/src/transport/plugin_transport_http.c index c5de1cc78..7137947c5 100644 --- a/src/transport/plugin_transport_http.c +++ b/src/transport/plugin_transport_http.c @@ -1307,6 +1307,7 @@ static void curl_perform (void *cls, struct HTTP_PeerContext *pc = NULL; struct HTTP_Message * cur_msg = NULL; long http_result; + char * tmp; GNUNET_assert(cls !=NULL); @@ -1328,7 +1329,8 @@ static void curl_perform (void *cls, break; /* get session for affected curl handle */ GNUNET_assert ( msg->easy_handle != NULL ); - curl_easy_getinfo(msg->easy_handle, CURLINFO_PRIVATE, (char *) &ps); + curl_easy_getinfo(msg->easy_handle, CURLINFO_PRIVATE, &tmp); + ps = (struct Session *) tmp; GNUNET_assert ( ps != NULL ); pc = ps->peercontext; GNUNET_assert ( pc != NULL ); -- 2.25.1