gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[GNUnet-SVN] r33642 - gnunet/src/transport


From: gnunet
Subject: [GNUnet-SVN] r33642 - gnunet/src/transport
Date: Wed, 11 Jun 2014 11:44:47 +0200

Author: wachs
Date: 2014-06-11 11:44:46 +0200 (Wed, 11 Jun 2014)
New Revision: 33642

Modified:
   gnunet/src/transport/plugin_transport_http_client.c
Log:
fixing issues found by coverity


Modified: gnunet/src/transport/plugin_transport_http_client.c
===================================================================
--- gnunet/src/transport/plugin_transport_http_client.c 2014-06-11 09:42:14 UTC 
(rev 33641)
+++ gnunet/src/transport/plugin_transport_http_client.c 2014-06-11 09:44:46 UTC 
(rev 33642)
@@ -1185,7 +1185,8 @@
       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 @@
     }
 
     /* 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;
 




reply via email to

[Prev in Thread] Current Thread [Next in Thread]