coverity fixes
authorMatthias Wachs <wachs@net.in.tum.de>
Tue, 18 Oct 2011 16:02:16 +0000 (16:02 +0000)
committerMatthias Wachs <wachs@net.in.tum.de>
Tue, 18 Oct 2011 16:02:16 +0000 (16:02 +0000)
src/transport/plugin_transport_http_server.c
src/transport/test_transport_api_reliability_https_peer1.conf
src/transport/transport-testing.c

index 0454e5bef3d709c8dc7854b2ed2491ba9d7ae34e..4ae0df35a65983310860d1a280a200e784f9674c 100644 (file)
@@ -130,8 +130,9 @@ server_load_certificate (struct Plugin *plugin)
 
   /* Get crypto init string from config
    * If not present just use default values */
-  GNUNET_CONFIGURATION_get_value_string (plugin->env->cfg, plugin->name,
-                                         "CRYPTO_INIT", &plugin->crypto_init);
+
+  GNUNET_assert (GNUNET_OK == GNUNET_CONFIGURATION_get_value_string (plugin->env->cfg, plugin->name,
+                                         "CRYPTO_INIT", &plugin->crypto_init));
 
   if (GNUNET_OK !=
       GNUNET_CONFIGURATION_get_value_filename (plugin->env->cfg, plugin->name,
index 8f44980ab7d20dd949ac5047c81f41eb6e1424c6..a46584eccf24166f30af49c48239de8ad8db438d 100644 (file)
@@ -9,7 +9,7 @@ TOTAL_QUOTA_IN  = 1073741824
 
 [transport-https]
 PORT = 12300
-CRYPTO_INIT = NONE:+VERS-TLS1.0:+ARCFOUR-128:+SHA1:+RSA:+COMP-NULL
+#CRYPTO_INIT = NONE:+VERS-TLS1.0:+ARCFOUR-128:+SHA1:+RSA:+COMP-NULL
 KEY_FILE = $SERVICEHOME/https_key_p1.key
 CERT_FILE = $SERVICEHOME/https_cert_p1.crt
 USE_IPv4 = YES
index 66844de312bbe8f3b932dabe764ff390ff02642c..0079bc42196412daa5fb1303df68aaca2920b145 100644 (file)
@@ -266,8 +266,8 @@ GNUNET_TRANSPORT_TESTING_start_peer (struct GNUNET_TRANSPORT_TESTING_handle * tt
 
   GNUNET_assert (GNUNET_OK == GNUNET_CONFIGURATION_load (p->cfg, cfgname));
   if (GNUNET_CONFIGURATION_have_value (p->cfg, "PATHS", "SERVICEHOME"))
-    GNUNET_CONFIGURATION_get_value_string (p->cfg, "PATHS", "SERVICEHOME",
-                                           &p->servicehome);
+    GNUNET_assert (GNUNET_OK == GNUNET_CONFIGURATION_get_value_string (p->cfg, "PATHS", "SERVICEHOME",
+                                           &p->servicehome));
   if (NULL != p->servicehome)
     GNUNET_DISK_directory_remove (p->servicehome);
   p->arm_proc =