From: Matthias Wachs Date: Wed, 21 Jul 2010 06:55:21 +0000 (+0000) Subject: (no commit message) X-Git-Tag: initial-import-from-subversion-38251~20879 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=1a9ddf0f363beb84c37d4b8c3417b1fa52b74a40;p=oweals%2Fgnunet.git --- 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 );