diff options
author | Matthias Wachs <wachs@net.in.tum.de> | 2010-09-01 11:06:50 +0000 |
---|---|---|
committer | Matthias Wachs <wachs@net.in.tum.de> | 2010-09-01 11:06:50 +0000 |
commit | 18e38359e46e7b368276d06411766a1a54026340 (patch) | |
tree | 76294b09bee856fabfba4e254f67d9a4fc73e915 /src/transport/test_transport_api_reliability.c | |
parent | ee0347d33decb06117b560f9a24dc2b35e8f5c6c (diff) | |
download | gnunet-18e38359e46e7b368276d06411766a1a54026340.tar.gz gnunet-18e38359e46e7b368276d06411766a1a54026340.zip |
fixed bugs found by Klocwork
Diffstat (limited to 'src/transport/test_transport_api_reliability.c')
-rw-r--r-- | src/transport/test_transport_api_reliability.c | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/src/transport/test_transport_api_reliability.c b/src/transport/test_transport_api_reliability.c index 204dac7bf..67884e5ea 100644 --- a/src/transport/test_transport_api_reliability.c +++ b/src/transport/test_transport_api_reliability.c | |||
@@ -386,8 +386,8 @@ setup_peer (struct PeerContext *p, const char *cfgname) | |||
386 | if (GNUNET_CONFIGURATION_have_value (p->cfg, | 386 | if (GNUNET_CONFIGURATION_have_value (p->cfg, |
387 | "transport-https", "KEY_FILE")) | 387 | "transport-https", "KEY_FILE")) |
388 | GNUNET_CONFIGURATION_get_value_string (p->cfg, "transport-https", "KEY_FILE", &key_file_p1); | 388 | GNUNET_CONFIGURATION_get_value_string (p->cfg, "transport-https", "KEY_FILE", &key_file_p1); |
389 | else | 389 | if (key_file_p1 == NULL) |
390 | GNUNET_asprintf(&key_file_p1,"https.key"); | 390 | GNUNET_asprintf(&key_file_p1,"https_p1.key"); |
391 | if (0 == stat (key_file_p1, &sbuf )) | 391 | if (0 == stat (key_file_p1, &sbuf )) |
392 | { | 392 | { |
393 | if (0 == remove(key_file_p1)) | 393 | if (0 == remove(key_file_p1)) |
@@ -397,8 +397,8 @@ setup_peer (struct PeerContext *p, const char *cfgname) | |||
397 | } | 397 | } |
398 | if (GNUNET_CONFIGURATION_have_value (p->cfg,"transport-https", "CERT_FILE")) | 398 | if (GNUNET_CONFIGURATION_have_value (p->cfg,"transport-https", "CERT_FILE")) |
399 | GNUNET_CONFIGURATION_get_value_string (p->cfg, "transport-https", "CERT_FILE", &cert_file_p1); | 399 | GNUNET_CONFIGURATION_get_value_string (p->cfg, "transport-https", "CERT_FILE", &cert_file_p1); |
400 | else | 400 | if (cert_file_p1 == NULL) |
401 | GNUNET_asprintf(&cert_file_p1,"https.cert"); | 401 | GNUNET_asprintf(&cert_file_p1,"https_p1.cert"); |
402 | if (0 == stat (cert_file_p1, &sbuf )) | 402 | if (0 == stat (cert_file_p1, &sbuf )) |
403 | { | 403 | { |
404 | if (0 == remove(cert_file_p1)) | 404 | if (0 == remove(cert_file_p1)) |
@@ -412,8 +412,8 @@ setup_peer (struct PeerContext *p, const char *cfgname) | |||
412 | if (GNUNET_CONFIGURATION_have_value (p->cfg, | 412 | if (GNUNET_CONFIGURATION_have_value (p->cfg, |
413 | "transport-https", "KEY_FILE")) | 413 | "transport-https", "KEY_FILE")) |
414 | GNUNET_CONFIGURATION_get_value_string (p->cfg, "transport-https", "KEY_FILE", &key_file_p2); | 414 | GNUNET_CONFIGURATION_get_value_string (p->cfg, "transport-https", "KEY_FILE", &key_file_p2); |
415 | else | 415 | if (key_file_p2 == NULL) |
416 | GNUNET_asprintf(&key_file_p2,"https.key"); | 416 | GNUNET_asprintf(&key_file_p2,"https_p2.key"); |
417 | if (0 == stat (key_file_p2, &sbuf )) | 417 | if (0 == stat (key_file_p2, &sbuf )) |
418 | { | 418 | { |
419 | if (0 == remove(key_file_p2)) | 419 | if (0 == remove(key_file_p2)) |
@@ -423,8 +423,8 @@ setup_peer (struct PeerContext *p, const char *cfgname) | |||
423 | } | 423 | } |
424 | if (GNUNET_CONFIGURATION_have_value (p->cfg,"transport-https", "CERT_FILE")) | 424 | if (GNUNET_CONFIGURATION_have_value (p->cfg,"transport-https", "CERT_FILE")) |
425 | GNUNET_CONFIGURATION_get_value_string (p->cfg, "transport-https", "CERT_FILE", &cert_file_p2); | 425 | GNUNET_CONFIGURATION_get_value_string (p->cfg, "transport-https", "CERT_FILE", &cert_file_p2); |
426 | else | 426 | if (cert_file_p2 == NULL) |
427 | GNUNET_asprintf(&cert_file_p2,"https.cert"); | 427 | GNUNET_asprintf(&cert_file_p2,"https_p2.cert"); |
428 | if (0 == stat (cert_file_p2, &sbuf )) | 428 | if (0 == stat (cert_file_p2, &sbuf )) |
429 | { | 429 | { |
430 | if (0 == remove(cert_file_p2)) | 430 | if (0 == remove(cert_file_p2)) |