diff options
author | Matthias Wachs <wachs@net.in.tum.de> | 2010-12-21 13:49:43 +0000 |
---|---|---|
committer | Matthias Wachs <wachs@net.in.tum.de> | 2010-12-21 13:49:43 +0000 |
commit | 7a226ed248616fffd30b13ea9b915acdc6dedc45 (patch) | |
tree | 422688c243076869d1df821d22db5a54e30a45dc /src/transport | |
parent | b252cf4e743728b449e1d2e9611e5ea2561084d9 (diff) | |
download | gnunet-7a226ed248616fffd30b13ea9b915acdc6dedc45.tar.gz gnunet-7a226ed248616fffd30b13ea9b915acdc6dedc45.zip |
fix bug from klocwork
Diffstat (limited to 'src/transport')
-rw-r--r-- | src/transport/test_quota_compliance.c | 10 |
1 files 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[]) | |||
801 | else | 801 | else |
802 | GNUNET_asprintf(&logger, "test-quota-compliance-%s-%s","tcp","symmetric"); | 802 | GNUNET_asprintf(&logger, "test-quota-compliance-%s-%s","tcp","symmetric"); |
803 | } | 803 | } |
804 | if (is_udp == GNUNET_YES) | 804 | else if (is_udp == GNUNET_YES) |
805 | { | 805 | { |
806 | if (is_asymmetric_recv_constant == GNUNET_YES) | 806 | if (is_asymmetric_recv_constant == GNUNET_YES) |
807 | GNUNET_asprintf(&logger, "test-quota-compliance-%s-%s","udp","asymmetric_recv_constant"); | 807 | GNUNET_asprintf(&logger, "test-quota-compliance-%s-%s","udp","asymmetric_recv_constant"); |
@@ -810,7 +810,7 @@ main (int argc, char *argv[]) | |||
810 | else | 810 | else |
811 | GNUNET_asprintf(&logger, "test-quota-compliance-%s-%s","udp","symmetric"); | 811 | GNUNET_asprintf(&logger, "test-quota-compliance-%s-%s","udp","symmetric"); |
812 | } | 812 | } |
813 | if (is_http == GNUNET_YES) | 813 | else if (is_http == GNUNET_YES) |
814 | { | 814 | { |
815 | if (is_asymmetric_recv_constant == GNUNET_YES) | 815 | if (is_asymmetric_recv_constant == GNUNET_YES) |
816 | GNUNET_asprintf(&logger, "test-quota-compliance-%s-%s","http","asymmetric_recv_constant"); | 816 | GNUNET_asprintf(&logger, "test-quota-compliance-%s-%s","http","asymmetric_recv_constant"); |
@@ -819,7 +819,7 @@ main (int argc, char *argv[]) | |||
819 | else | 819 | else |
820 | GNUNET_asprintf(&logger, "test-quota-compliance-%s-%s","http","symmetric"); | 820 | GNUNET_asprintf(&logger, "test-quota-compliance-%s-%s","http","symmetric"); |
821 | } | 821 | } |
822 | if (is_https == GNUNET_YES) | 822 | else if (is_https == GNUNET_YES) |
823 | { | 823 | { |
824 | if (is_asymmetric_recv_constant == GNUNET_YES) | 824 | if (is_asymmetric_recv_constant == GNUNET_YES) |
825 | GNUNET_asprintf(&logger, "test-quota-compliance-%s-%s","https","asymmetric_recv_constant"); | 825 | GNUNET_asprintf(&logger, "test-quota-compliance-%s-%s","https","asymmetric_recv_constant"); |
@@ -828,6 +828,10 @@ main (int argc, char *argv[]) | |||
828 | else | 828 | else |
829 | GNUNET_asprintf(&logger, "test-quota-compliance-%s-%s","https","symmetric"); | 829 | GNUNET_asprintf(&logger, "test-quota-compliance-%s-%s","https","symmetric"); |
830 | } | 830 | } |
831 | else | ||
832 | { | ||
833 | GNUNET_asprintf(&logger, "test-quota-compliance-%s-%s","noplugin","none"); | ||
834 | } | ||
831 | 835 | ||
832 | GNUNET_DISK_directory_remove ("/tmp/test_quota_compliance_peer1"); | 836 | GNUNET_DISK_directory_remove ("/tmp/test_quota_compliance_peer1"); |
833 | GNUNET_DISK_directory_remove ("/tmp/test_quota_compliance_peer2"); | 837 | GNUNET_DISK_directory_remove ("/tmp/test_quota_compliance_peer2"); |