diff options
author | Christian Grothoff <christian@grothoff.org> | 2010-05-04 16:55:27 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2010-05-04 16:55:27 +0000 |
commit | a27b40c19253723ecfbadf69fb8bca115c4059fb (patch) | |
tree | fc995f642a2ed4225e0913fcffceefe711c8dba6 | |
parent | c681caf0b8e6f032b3703b54436fc53969aea598 (diff) | |
download | gnunet-a27b40c19253723ecfbadf69fb8bca115c4059fb.tar.gz gnunet-a27b40c19253723ecfbadf69fb8bca115c4059fb.zip |
fixes
-rw-r--r-- | src/transport/plugin_transport_http.c | 2 | ||||
-rw-r--r-- | src/transport/test_plugin_transport_http.c | 3 |
2 files changed, 4 insertions, 1 deletions
diff --git a/src/transport/plugin_transport_http.c b/src/transport/plugin_transport_http.c index fdd7c7a01..9afc0a748 100644 --- a/src/transport/plugin_transport_http.c +++ b/src/transport/plugin_transport_http.c | |||
@@ -402,6 +402,7 @@ libgnunet_plugin_transport_http_init (void *cls) | |||
402 | { | 402 | { |
403 | GNUNET_log (GNUNET_ERROR_TYPE_ERROR, | 403 | GNUNET_log (GNUNET_ERROR_TYPE_ERROR, |
404 | _("Failed to retrieve statistics handle\n")); | 404 | _("Failed to retrieve statistics handle\n")); |
405 | GNUNET_free (api); | ||
405 | return NULL; | 406 | return NULL; |
406 | } | 407 | } |
407 | 408 | ||
@@ -410,6 +411,7 @@ libgnunet_plugin_transport_http_init (void *cls) | |||
410 | if ( (NULL == http_daemon) || (NULL == curl_multi)) | 411 | if ( (NULL == http_daemon) || (NULL == curl_multi)) |
411 | { | 412 | { |
412 | GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,"Initializing http plugin failed\n"); | 413 | GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,"Initializing http plugin failed\n"); |
414 | GNUNET_free (api); | ||
413 | return NULL; | 415 | return NULL; |
414 | } | 416 | } |
415 | else | 417 | else |
diff --git a/src/transport/test_plugin_transport_http.c b/src/transport/test_plugin_transport_http.c index d0e796d67..38d38d903 100644 --- a/src/transport/test_plugin_transport_http.c +++ b/src/transport/test_plugin_transport_http.c | |||
@@ -204,7 +204,6 @@ run (void *cls, | |||
204 | cfg = c; | 204 | cfg = c; |
205 | 205 | ||
206 | timeout_task = GNUNET_SCHEDULER_add_delayed ( sched, GNUNET_TIME_relative_multiply (GNUNET_TIME_UNIT_SECONDS, 5), &timeout_error, NULL); | 206 | timeout_task = GNUNET_SCHEDULER_add_delayed ( sched, GNUNET_TIME_relative_multiply (GNUNET_TIME_UNIT_SECONDS, 5), &timeout_error, NULL); |
207 | |||
208 | /* parse configuration */ | 207 | /* parse configuration */ |
209 | if ((GNUNET_OK != | 208 | if ((GNUNET_OK != |
210 | GNUNET_CONFIGURATION_get_value_number (c, | 209 | GNUNET_CONFIGURATION_get_value_number (c, |
@@ -228,7 +227,9 @@ run (void *cls, | |||
228 | /* | 227 | /* |
229 | max_connect_per_transport = (uint32_t) tneigh; | 228 | max_connect_per_transport = (uint32_t) tneigh; |
230 | my_private_key = GNUNET_CRYPTO_rsa_key_create_from_file (keyfile); | 229 | my_private_key = GNUNET_CRYPTO_rsa_key_create_from_file (keyfile); |
230 | */ | ||
231 | GNUNET_free (keyfile); | 231 | GNUNET_free (keyfile); |
232 | /* | ||
232 | if (my_private_key == NULL) | 233 | if (my_private_key == NULL) |
233 | { | 234 | { |
234 | GNUNET_log (GNUNET_ERROR_TYPE_ERROR, | 235 | GNUNET_log (GNUNET_ERROR_TYPE_ERROR, |