summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthias Wachs <wachs@net.in.tum.de>2011-10-18 16:02:16 +0000
committerMatthias Wachs <wachs@net.in.tum.de>2011-10-18 16:02:16 +0000
commit5cc38319ae9f339473264443374d3c2c80a08171 (patch)
treefd0d618cd9ce5ba55abad69d33783ab59b4002b9
parent3b83b633e8ac09b0f1151e40c3313ecaebb2135f (diff)
coverity fixes
-rw-r--r--src/transport/plugin_transport_http_server.c5
-rw-r--r--src/transport/test_transport_api_reliability_https_peer1.conf2
-rw-r--r--src/transport/transport-testing.c4
3 files changed, 6 insertions, 5 deletions
diff --git a/src/transport/plugin_transport_http_server.c b/src/transport/plugin_transport_http_server.c
index 0454e5bef..4ae0df35a 100644
--- a/src/transport/plugin_transport_http_server.c
+++ b/src/transport/plugin_transport_http_server.c
@@ -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,
diff --git a/src/transport/test_transport_api_reliability_https_peer1.conf b/src/transport/test_transport_api_reliability_https_peer1.conf
index 8f44980ab..a46584ecc 100644
--- a/src/transport/test_transport_api_reliability_https_peer1.conf
+++ b/src/transport/test_transport_api_reliability_https_peer1.conf
@@ -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
diff --git a/src/transport/transport-testing.c b/src/transport/transport-testing.c
index 66844de31..0079bc421 100644
--- a/src/transport/transport-testing.c
+++ b/src/transport/transport-testing.c
@@ -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 =