diff options
author | Matthias Wachs <wachs@net.in.tum.de> | 2010-09-01 11:09:02 +0000 |
---|---|---|
committer | Matthias Wachs <wachs@net.in.tum.de> | 2010-09-01 11:09:02 +0000 |
commit | 7c364119691e984d81f5f5ce5f5321ee5b322e0d (patch) | |
tree | ca81157894f06994f319b6062c175f8247806d98 /src/transport/test_transport_api.c | |
parent | 18e38359e46e7b368276d06411766a1a54026340 (diff) | |
download | gnunet-7c364119691e984d81f5f5ce5f5321ee5b322e0d.tar.gz gnunet-7c364119691e984d81f5f5ce5f5321ee5b322e0d.zip |
fixed bugs found by klocwork
Diffstat (limited to 'src/transport/test_transport_api.c')
-rw-r--r-- | src/transport/test_transport_api.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/transport/test_transport_api.c b/src/transport/test_transport_api.c index 7bd63414d..671e28bfc 100644 --- a/src/transport/test_transport_api.c +++ b/src/transport/test_transport_api.c | |||
@@ -237,7 +237,7 @@ setup_peer (struct PeerContext *p, const char *cfgname) | |||
237 | if (GNUNET_CONFIGURATION_have_value (p->cfg, | 237 | if (GNUNET_CONFIGURATION_have_value (p->cfg, |
238 | "transport-https", "KEY_FILE")) | 238 | "transport-https", "KEY_FILE")) |
239 | GNUNET_CONFIGURATION_get_value_string (p->cfg, "transport-https", "KEY_FILE", &key_file_p1); | 239 | GNUNET_CONFIGURATION_get_value_string (p->cfg, "transport-https", "KEY_FILE", &key_file_p1); |
240 | else | 240 | if (key_file_p1==NULL) |
241 | GNUNET_asprintf(&key_file_p1,"https.key"); | 241 | GNUNET_asprintf(&key_file_p1,"https.key"); |
242 | if (0 == stat (key_file_p1, &sbuf )) | 242 | if (0 == stat (key_file_p1, &sbuf )) |
243 | { | 243 | { |
@@ -248,7 +248,7 @@ setup_peer (struct PeerContext *p, const char *cfgname) | |||
248 | } | 248 | } |
249 | if (GNUNET_CONFIGURATION_have_value (p->cfg,"transport-https", "CERT_FILE")) | 249 | if (GNUNET_CONFIGURATION_have_value (p->cfg,"transport-https", "CERT_FILE")) |
250 | GNUNET_CONFIGURATION_get_value_string (p->cfg, "transport-https", "CERT_FILE", &cert_file_p1); | 250 | GNUNET_CONFIGURATION_get_value_string (p->cfg, "transport-https", "CERT_FILE", &cert_file_p1); |
251 | else | 251 | if (cert_file_p1==NULL) |
252 | GNUNET_asprintf(&cert_file_p1,"https.cert"); | 252 | GNUNET_asprintf(&cert_file_p1,"https.cert"); |
253 | if (0 == stat (cert_file_p1, &sbuf )) | 253 | if (0 == stat (cert_file_p1, &sbuf )) |
254 | { | 254 | { |
@@ -263,7 +263,7 @@ setup_peer (struct PeerContext *p, const char *cfgname) | |||
263 | if (GNUNET_CONFIGURATION_have_value (p->cfg, | 263 | if (GNUNET_CONFIGURATION_have_value (p->cfg, |
264 | "transport-https", "KEY_FILE")) | 264 | "transport-https", "KEY_FILE")) |
265 | GNUNET_CONFIGURATION_get_value_string (p->cfg, "transport-https", "KEY_FILE", &key_file_p2); | 265 | GNUNET_CONFIGURATION_get_value_string (p->cfg, "transport-https", "KEY_FILE", &key_file_p2); |
266 | else | 266 | if (key_file_p2==NULL) |
267 | GNUNET_asprintf(&key_file_p2,"https.key"); | 267 | GNUNET_asprintf(&key_file_p2,"https.key"); |
268 | if (0 == stat (key_file_p2, &sbuf )) | 268 | if (0 == stat (key_file_p2, &sbuf )) |
269 | { | 269 | { |
@@ -274,7 +274,7 @@ setup_peer (struct PeerContext *p, const char *cfgname) | |||
274 | } | 274 | } |
275 | if (GNUNET_CONFIGURATION_have_value (p->cfg,"transport-https", "CERT_FILE")) | 275 | if (GNUNET_CONFIGURATION_have_value (p->cfg,"transport-https", "CERT_FILE")) |
276 | GNUNET_CONFIGURATION_get_value_string (p->cfg, "transport-https", "CERT_FILE", &cert_file_p2); | 276 | GNUNET_CONFIGURATION_get_value_string (p->cfg, "transport-https", "CERT_FILE", &cert_file_p2); |
277 | else | 277 | if (cert_file_p2==NULL) |
278 | GNUNET_asprintf(&cert_file_p2,"https.cert"); | 278 | GNUNET_asprintf(&cert_file_p2,"https.cert"); |
279 | if (0 == stat (cert_file_p2, &sbuf )) | 279 | if (0 == stat (cert_file_p2, &sbuf )) |
280 | { | 280 | { |