diff options
Diffstat (limited to 'src/transport/test_plugin_transport_https.c')
-rw-r--r-- | src/transport/test_plugin_transport_https.c | 18 |
1 files changed, 6 insertions, 12 deletions
diff --git a/src/transport/test_plugin_transport_https.c b/src/transport/test_plugin_transport_https.c index 61aea1fa7..12371a162 100644 --- a/src/transport/test_plugin_transport_https.c +++ b/src/transport/test_plugin_transport_https.c | |||
@@ -18,8 +18,8 @@ | |||
18 | Boston, MA 02111-1307, USA. | 18 | Boston, MA 02111-1307, USA. |
19 | */ | 19 | */ |
20 | /** | 20 | /** |
21 | * @file transport/test_gnunet_transport_plugin.https.c | 21 | * @file transport/test_plugin_transport_https.c |
22 | * @brief testcase for gnunet_transport_plugin.https.c | 22 | * @brief testcase for plugin_transport_https.c |
23 | * @author Matthias Wachs | 23 | * @author Matthias Wachs |
24 | */ | 24 | */ |
25 | 25 | ||
@@ -395,7 +395,6 @@ static char * cert_file; | |||
395 | static void | 395 | static void |
396 | shutdown_clean () | 396 | shutdown_clean () |
397 | { | 397 | { |
398 | struct Plugin_Address * cur; | ||
399 | struct Plugin_Address * tmp; | 398 | struct Plugin_Address * tmp; |
400 | 399 | ||
401 | /* Evaluate results */ | 400 | /* Evaluate results */ |
@@ -435,7 +434,6 @@ shutdown_clean () | |||
435 | /* cleaning addresses */ | 434 | /* cleaning addresses */ |
436 | while (addr_head != NULL) | 435 | while (addr_head != NULL) |
437 | { | 436 | { |
438 | cur = addr_head; | ||
439 | tmp = addr_head->next; | 437 | tmp = addr_head->next; |
440 | GNUNET_free (addr_head->addr); | 438 | GNUNET_free (addr_head->addr); |
441 | GNUNET_free (addr_head); | 439 | GNUNET_free (addr_head); |
@@ -504,9 +502,6 @@ static void task_send_cont (void *cls, | |||
504 | const struct GNUNET_PeerIdentity * target, | 502 | const struct GNUNET_PeerIdentity * target, |
505 | int result) | 503 | int result) |
506 | { | 504 | { |
507 | struct Plugin_Address * tmp_addr; | ||
508 | tmp_addr = addr_head; | ||
509 | |||
510 | if ((cls == &fail_msg_transmited_bigger_max_size) && (result == GNUNET_SYSERR)) | 505 | if ((cls == &fail_msg_transmited_bigger_max_size) && (result == GNUNET_SYSERR)) |
511 | { | 506 | { |
512 | GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, "Message bigger max msg size was not sent!\n"); | 507 | GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, "Message bigger max msg size was not sent!\n"); |
@@ -1261,8 +1256,6 @@ run (void *cls, | |||
1261 | 1256 | ||
1262 | /* assertions before start */ | 1257 | /* assertions before start */ |
1263 | GNUNET_assert ((port > 0) && (port <= 65535)); | 1258 | GNUNET_assert ((port > 0) && (port <= 65535)); |
1264 | GNUNET_assert(&my_public_key != NULL); | ||
1265 | GNUNET_assert(&my_identity.hashPubKey != NULL); | ||
1266 | 1259 | ||
1267 | /* load plugins... */ | 1260 | /* load plugins... */ |
1268 | setup_plugin_environment (); | 1261 | setup_plugin_environment (); |
@@ -1401,9 +1394,10 @@ main (int argc, char *const *argv) | |||
1401 | "test_gnunet_transport_plugin.https", | 1394 | "test_gnunet_transport_plugin.https", |
1402 | "testcase", options, &run, NULL)) ? GNUNET_NO : GNUNET_YES; | 1395 | "testcase", options, &run, NULL)) ? GNUNET_NO : GNUNET_YES; |
1403 | 1396 | ||
1404 | GNUNET_DISK_directory_remove ("/tmp/test_gnunet_transport_plugin.https"); | 1397 | GNUNET_DISK_directory_remove ("/tmp/test_gnunet_transport_plugin.https"); |
1405 | 1398 | if (GNUNET_OK != ret) | |
1399 | return 1; | ||
1406 | return fail; | 1400 | return fail; |
1407 | } | 1401 | } |
1408 | 1402 | ||
1409 | /* end of test_gnunet_transport_plugin.http.c */ | 1403 | /* end of test_plugin_transport_https.c */ |