diff options
author | Matthias Wachs <wachs@net.in.tum.de> | 2011-09-16 22:08:45 +0000 |
---|---|---|
committer | Matthias Wachs <wachs@net.in.tum.de> | 2011-09-16 22:08:45 +0000 |
commit | 2b9c6d7aa188d9666104d52d5ffb3338521fd27e (patch) | |
tree | a0a9c402b61c8e6a57533e49e4ed9c834bc573b9 /src/transport/plugin_transport_http_client.c | |
parent | b5018b4a304d7e39d3bb254977437a2d08f234d4 (diff) | |
download | gnunet-2b9c6d7aa188d9666104d52d5ffb3338521fd27e.tar.gz gnunet-2b9c6d7aa188d9666104d52d5ffb3338521fd27e.zip |
fixes
Diffstat (limited to 'src/transport/plugin_transport_http_client.c')
-rw-r--r-- | src/transport/plugin_transport_http_client.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/transport/plugin_transport_http_client.c b/src/transport/plugin_transport_http_client.c index 224adb474..715125dd0 100644 --- a/src/transport/plugin_transport_http_client.c +++ b/src/transport/plugin_transport_http_client.c | |||
@@ -171,10 +171,12 @@ client_run (void *cls, const struct GNUNET_SCHEDULER_TaskContext *tc) | |||
171 | while ((msg = curl_multi_info_read(plugin->client_mh, &msgs_left))) | 171 | while ((msg = curl_multi_info_read(plugin->client_mh, &msgs_left))) |
172 | { | 172 | { |
173 | CURL *easy_h = msg->easy_handle; | 173 | CURL *easy_h = msg->easy_handle; |
174 | struct Session *s; | 174 | struct Session *s = NULL; |
175 | char * d = (char *) s; | ||
175 | GNUNET_assert (easy_h != NULL); | 176 | GNUNET_assert (easy_h != NULL); |
176 | 177 | ||
177 | GNUNET_assert (CURLE_OK == curl_easy_getinfo(easy_h, CURLINFO_PRIVATE, &s)); | 178 | GNUNET_assert (CURLE_OK == curl_easy_getinfo(easy_h, CURLINFO_PRIVATE, &d)); |
179 | s = (struct Session *) d; | ||
178 | GNUNET_assert (s != NULL); | 180 | GNUNET_assert (s != NULL); |
179 | 181 | ||
180 | if (msg->msg == CURLMSG_DONE) | 182 | if (msg->msg == CURLMSG_DONE) |