From: Matthias Wachs Date: Tue, 18 Oct 2011 16:02:16 +0000 (+0000) Subject: coverity fixes X-Git-Tag: initial-import-from-subversion-38251~16423 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=5cc38319ae9f339473264443374d3c2c80a08171;p=oweals%2Fgnunet.git coverity fixes --- 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 =