From 7a226ed248616fffd30b13ea9b915acdc6dedc45 Mon Sep 17 00:00:00 2001 From: Matthias Wachs Date: Tue, 21 Dec 2010 13:49:43 +0000 Subject: [PATCH] fix bug from klocwork --- src/transport/test_quota_compliance.c | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/src/transport/test_quota_compliance.c b/src/transport/test_quota_compliance.c index 5b070f48b..4da5ab48d 100644 --- a/src/transport/test_quota_compliance.c +++ b/src/transport/test_quota_compliance.c @@ -801,7 +801,7 @@ main (int argc, char *argv[]) else GNUNET_asprintf(&logger, "test-quota-compliance-%s-%s","tcp","symmetric"); } - if (is_udp == GNUNET_YES) + else if (is_udp == GNUNET_YES) { if (is_asymmetric_recv_constant == GNUNET_YES) GNUNET_asprintf(&logger, "test-quota-compliance-%s-%s","udp","asymmetric_recv_constant"); @@ -810,7 +810,7 @@ main (int argc, char *argv[]) else GNUNET_asprintf(&logger, "test-quota-compliance-%s-%s","udp","symmetric"); } - if (is_http == GNUNET_YES) + else if (is_http == GNUNET_YES) { if (is_asymmetric_recv_constant == GNUNET_YES) GNUNET_asprintf(&logger, "test-quota-compliance-%s-%s","http","asymmetric_recv_constant"); @@ -819,7 +819,7 @@ main (int argc, char *argv[]) else GNUNET_asprintf(&logger, "test-quota-compliance-%s-%s","http","symmetric"); } - if (is_https == GNUNET_YES) + else if (is_https == GNUNET_YES) { if (is_asymmetric_recv_constant == GNUNET_YES) GNUNET_asprintf(&logger, "test-quota-compliance-%s-%s","https","asymmetric_recv_constant"); @@ -828,6 +828,10 @@ main (int argc, char *argv[]) else GNUNET_asprintf(&logger, "test-quota-compliance-%s-%s","https","symmetric"); } + else + { + GNUNET_asprintf(&logger, "test-quota-compliance-%s-%s","noplugin","none"); + } GNUNET_DISK_directory_remove ("/tmp/test_quota_compliance_peer1"); GNUNET_DISK_directory_remove ("/tmp/test_quota_compliance_peer2"); -- 2.25.1