diff options
author | Matthias Wachs <wachs@net.in.tum.de> | 2014-06-11 09:44:46 +0000 |
---|---|---|
committer | Matthias Wachs <wachs@net.in.tum.de> | 2014-06-11 09:44:46 +0000 |
commit | ebf90b0e0d92be6df926e1a2462176302c0d17bb (patch) | |
tree | 07803d28d1777af7ccbb8639a0f846a77268cc8c /src/transport/plugin_transport_http_client.c | |
parent | 28159c1f3c6b967074219e4ca5a16b626f8ed818 (diff) | |
download | gnunet-ebf90b0e0d92be6df926e1a2462176302c0d17bb.tar.gz gnunet-ebf90b0e0d92be6df926e1a2462176302c0d17bb.zip |
fixing issues found by coverity
Diffstat (limited to 'src/transport/plugin_transport_http_client.c')
-rw-r--r-- | src/transport/plugin_transport_http_client.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/transport/plugin_transport_http_client.c b/src/transport/plugin_transport_http_client.c index d853cc7f7..7da92c743 100644 --- a/src/transport/plugin_transport_http_client.c +++ b/src/transport/plugin_transport_http_client.c | |||
@@ -1185,7 +1185,8 @@ client_run (void *cls, const struct GNUNET_SCHEDULER_TaskContext *tc) | |||
1185 | GNUNET_assert (s != NULL); | 1185 | GNUNET_assert (s != NULL); |
1186 | if (msg->msg == CURLMSG_DONE) | 1186 | if (msg->msg == CURLMSG_DONE) |
1187 | { | 1187 | { |
1188 | curl_easy_getinfo (easy_h, CURLINFO_RESPONSE_CODE, &http_statuscode); | 1188 | GNUNET_break (CURLE_OK == curl_easy_getinfo (easy_h, |
1189 | CURLINFO_RESPONSE_CODE, &http_statuscode)); | ||
1189 | if (easy_h == s->client_put) | 1190 | if (easy_h == s->client_put) |
1190 | { | 1191 | { |
1191 | if ((0 != msg->data.result) || (http_statuscode != 200)) | 1192 | if ((0 != msg->data.result) || (http_statuscode != 200)) |
@@ -1887,7 +1888,7 @@ client_configure_plugin (struct HTTP_Client_Plugin *plugin) | |||
1887 | } | 1888 | } |
1888 | 1889 | ||
1889 | /* proxy http tunneling */ | 1890 | /* proxy http tunneling */ |
1890 | if (GNUNET_SYSERR == (plugin->proxy_use_httpproxytunnel == GNUNET_CONFIGURATION_get_value_yesno (plugin->env->cfg, | 1891 | if (GNUNET_SYSERR == (plugin->proxy_use_httpproxytunnel = GNUNET_CONFIGURATION_get_value_yesno (plugin->env->cfg, |
1891 | plugin->name, "PROXY_HTTP_TUNNELING"))) | 1892 | plugin->name, "PROXY_HTTP_TUNNELING"))) |
1892 | plugin->proxy_use_httpproxytunnel = GNUNET_NO; | 1893 | plugin->proxy_use_httpproxytunnel = GNUNET_NO; |
1893 | 1894 | ||