(no commit message)
authorMatthias Wachs <wachs@net.in.tum.de>
Wed, 21 Jul 2010 06:55:21 +0000 (06:55 +0000)
committerMatthias Wachs <wachs@net.in.tum.de>
Wed, 21 Jul 2010 06:55:21 +0000 (06:55 +0000)
src/transport/plugin_transport_http.c

index c5de1cc7863d42cc97b265a1822ecd9f13e071c7..7137947c5dde02be042b9493683270018febf6f3 100644 (file)
@@ -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 );