From: Matthias Wachs Date: Wed, 11 Jun 2014 09:44:46 +0000 (+0000) Subject: fixing issues found by coverity X-Git-Tag: initial-import-from-subversion-38251~3767 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=ebf90b0e0d92be6df926e1a2462176302c0d17bb;p=oweals%2Fgnunet.git fixing issues found by coverity --- 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) GNUNET_assert (s != NULL); if (msg->msg == CURLMSG_DONE) { - curl_easy_getinfo (easy_h, CURLINFO_RESPONSE_CODE, &http_statuscode); + GNUNET_break (CURLE_OK == curl_easy_getinfo (easy_h, + CURLINFO_RESPONSE_CODE, &http_statuscode)); if (easy_h == s->client_put) { if ((0 != msg->data.result) || (http_statuscode != 200)) @@ -1887,7 +1888,7 @@ client_configure_plugin (struct HTTP_Client_Plugin *plugin) } /* proxy http tunneling */ - if (GNUNET_SYSERR == (plugin->proxy_use_httpproxytunnel == GNUNET_CONFIGURATION_get_value_yesno (plugin->env->cfg, + if (GNUNET_SYSERR == (plugin->proxy_use_httpproxytunnel = GNUNET_CONFIGURATION_get_value_yesno (plugin->env->cfg, plugin->name, "PROXY_HTTP_TUNNELING"))) plugin->proxy_use_httpproxytunnel = GNUNET_NO;