aboutsummaryrefslogtreecommitdiff
path: root/src/transport/test_plugin_transport_https.c
diff options
context:
space:
mode:
authorMatthias Wachs <wachs@net.in.tum.de>2010-09-01 10:59:11 +0000
committerMatthias Wachs <wachs@net.in.tum.de>2010-09-01 10:59:11 +0000
commitee0347d33decb06117b560f9a24dc2b35e8f5c6c (patch)
tree227c1d300f0445109bc3e717fddb84623f25da7c /src/transport/test_plugin_transport_https.c
parent00a16eb80252a3632691136ef7db4919ddafcb9a (diff)
downloadgnunet-ee0347d33decb06117b560f9a24dc2b35e8f5c6c.tar.gz
gnunet-ee0347d33decb06117b560f9a24dc2b35e8f5c6c.zip
fixed: klocwork bug #305
Diffstat (limited to 'src/transport/test_plugin_transport_https.c')
-rw-r--r--src/transport/test_plugin_transport_https.c8
1 files changed, 2 insertions, 6 deletions
diff --git a/src/transport/test_plugin_transport_https.c b/src/transport/test_plugin_transport_https.c
index 6e33a1675..caf727105 100644
--- a/src/transport/test_plugin_transport_https.c
+++ b/src/transport/test_plugin_transport_https.c
@@ -1217,10 +1217,8 @@ run (void *cls,
1217 "KEY_FILE", 1217 "KEY_FILE",
1218 &key_file); 1218 &key_file);
1219 } 1219 }
1220 else 1220 if (key_file == NULL)
1221 {
1222 GNUNET_asprintf(&key_file,"https.key"); 1221 GNUNET_asprintf(&key_file,"https.key");
1223 }
1224 1222
1225 if (0 == stat (key_file, &sbuf )) 1223 if (0 == stat (key_file, &sbuf ))
1226 { 1224 {
@@ -1239,10 +1237,8 @@ run (void *cls,
1239 "CERT_FILE", 1237 "CERT_FILE",
1240 &cert_file); 1238 &cert_file);
1241 } 1239 }
1242 else 1240 if (cert_file == NULL)
1243 {
1244 GNUNET_asprintf(&cert_file,"https.cert"); 1241 GNUNET_asprintf(&cert_file,"https.cert");
1245 }
1246 1242
1247 if (0 == stat (cert_file, &sbuf )) 1243 if (0 == stat (cert_file, &sbuf ))
1248 { 1244 {