summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarcello Stanisci <stanisci.m@gmail.com>2018-05-04 14:23:17 +0200
committerMarcello Stanisci <stanisci.m@gmail.com>2018-05-04 14:23:17 +0200
commit5fda47780a400c52e7e98b8b5e9cd2fd90846229 (patch)
tree301fc60978f2b333d5ce423a062e595bfde9bd3c
parenta761baab49178ed04ca55baa8eeff3e1554153e8 (diff)
downloadexchange-5fda47780a400c52e7e98b8b5e9cd2fd90846229.tar.gz
exchange-5fda47780a400c52e7e98b8b5e9cd2fd90846229.tar.bz2
exchange-5fda47780a400c52e7e98b8b5e9cd2fd90846229.zip
fix segfault
-rw-r--r--src/exchange-lib/testing_api_helpers.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/exchange-lib/testing_api_helpers.c b/src/exchange-lib/testing_api_helpers.c
index c18277291..c6459a541 100644
--- a/src/exchange-lib/testing_api_helpers.c
+++ b/src/exchange-lib/testing_api_helpers.c
@@ -16,6 +16,7 @@
License along with TALER; see the file COPYING. If not, see
<http://www.gnu.org/licenses/>
*/
+
/**
* @file exchange-lib/testing_api_helpers.c
* @brief helper functions
@@ -380,7 +381,7 @@ TALER_TESTING_setup_with_exchange (TALER_TESTING_Main main_cb,
return GNUNET_NO;
}
- if (0 == strcmp ("http", serve))
+ if (0 == strcmp ("tcp", serve))
{
if (GNUNET_OK !=
GNUNET_CONFIGURATION_get_value_number (cfg,
@@ -395,7 +396,6 @@ TALER_TESTING_setup_with_exchange (TALER_TESTING_Main main_cb,
return GNUNET_NO;
}
- GNUNET_CONFIGURATION_destroy (cfg);
if (GNUNET_OK !=
GNUNET_NETWORK_test_port_free (IPPROTO_TCP,
(uint16_t) port))
@@ -427,6 +427,7 @@ TALER_TESTING_setup_with_exchange (TALER_TESTING_Main main_cb,
GNUNET_CONFIGURATION_destroy (cfg);
return GNUNET_NO;
}
+ GNUNET_CONFIGURATION_destroy (cfg);
GNUNET_asprintf (&wget_cmd,
"wget -q -t 1 -T 1 %skeys"