diff options
author | Matthias Wachs <wachs@net.in.tum.de> | 2010-07-21 06:55:21 +0000 |
---|---|---|
committer | Matthias Wachs <wachs@net.in.tum.de> | 2010-07-21 06:55:21 +0000 |
commit | 1a9ddf0f363beb84c37d4b8c3417b1fa52b74a40 (patch) | |
tree | fa6b11507c71c29634d0c236e82c00735d1043bb | |
parent | bb3cab0f4f764be314670a19a7468d4ccd87c089 (diff) | |
download | gnunet-1a9ddf0f363beb84c37d4b8c3417b1fa52b74a40.tar.gz gnunet-1a9ddf0f363beb84c37d4b8c3417b1fa52b74a40.zip |
-rw-r--r-- | src/transport/plugin_transport_http.c | 4 |
1 files changed, 3 insertions, 1 deletions
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, | |||
1307 | struct HTTP_PeerContext *pc = NULL; | 1307 | struct HTTP_PeerContext *pc = NULL; |
1308 | struct HTTP_Message * cur_msg = NULL; | 1308 | struct HTTP_Message * cur_msg = NULL; |
1309 | long http_result; | 1309 | long http_result; |
1310 | char * tmp; | ||
1310 | 1311 | ||
1311 | GNUNET_assert(cls !=NULL); | 1312 | GNUNET_assert(cls !=NULL); |
1312 | 1313 | ||
@@ -1328,7 +1329,8 @@ static void curl_perform (void *cls, | |||
1328 | break; | 1329 | break; |
1329 | /* get session for affected curl handle */ | 1330 | /* get session for affected curl handle */ |
1330 | GNUNET_assert ( msg->easy_handle != NULL ); | 1331 | GNUNET_assert ( msg->easy_handle != NULL ); |
1331 | curl_easy_getinfo(msg->easy_handle, CURLINFO_PRIVATE, (char *) &ps); | 1332 | curl_easy_getinfo(msg->easy_handle, CURLINFO_PRIVATE, &tmp); |
1333 | ps = (struct Session *) tmp; | ||
1332 | GNUNET_assert ( ps != NULL ); | 1334 | GNUNET_assert ( ps != NULL ); |
1333 | pc = ps->peercontext; | 1335 | pc = ps->peercontext; |
1334 | GNUNET_assert ( pc != NULL ); | 1336 | GNUNET_assert ( pc != NULL ); |