[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[GNUnet-SVN] r12789 - gnunet/src/transport
From: |
gnunet |
Subject: |
[GNUnet-SVN] r12789 - gnunet/src/transport |
Date: |
Wed, 1 Sep 2010 13:09:02 +0200 |
Author: wachs
Date: 2010-09-01 13:09:02 +0200 (Wed, 01 Sep 2010)
New Revision: 12789
Modified:
gnunet/src/transport/test_transport_api.c
Log:
fixed bugs found by klocwork
Modified: gnunet/src/transport/test_transport_api.c
===================================================================
--- gnunet/src/transport/test_transport_api.c 2010-09-01 11:06:50 UTC (rev
12788)
+++ gnunet/src/transport/test_transport_api.c 2010-09-01 11:09:02 UTC (rev
12789)
@@ -237,7 +237,7 @@
if (GNUNET_CONFIGURATION_have_value (p->cfg,
"transport-https", "KEY_FILE"))
GNUNET_CONFIGURATION_get_value_string (p->cfg,
"transport-https", "KEY_FILE", &key_file_p1);
- else
+ if (key_file_p1==NULL)
GNUNET_asprintf(&key_file_p1,"https.key");
if (0 == stat (key_file_p1, &sbuf ))
{
@@ -248,7 +248,7 @@
}
if (GNUNET_CONFIGURATION_have_value
(p->cfg,"transport-https", "CERT_FILE"))
GNUNET_CONFIGURATION_get_value_string (p->cfg,
"transport-https", "CERT_FILE", &cert_file_p1);
- else
+ if (cert_file_p1==NULL)
GNUNET_asprintf(&cert_file_p1,"https.cert");
if (0 == stat (cert_file_p1, &sbuf ))
{
@@ -263,7 +263,7 @@
if (GNUNET_CONFIGURATION_have_value (p->cfg,
"transport-https", "KEY_FILE"))
GNUNET_CONFIGURATION_get_value_string (p->cfg,
"transport-https", "KEY_FILE", &key_file_p2);
- else
+ if (key_file_p2==NULL)
GNUNET_asprintf(&key_file_p2,"https.key");
if (0 == stat (key_file_p2, &sbuf ))
{
@@ -274,7 +274,7 @@
}
if (GNUNET_CONFIGURATION_have_value
(p->cfg,"transport-https", "CERT_FILE"))
GNUNET_CONFIGURATION_get_value_string (p->cfg,
"transport-https", "CERT_FILE", &cert_file_p2);
- else
+ if (cert_file_p2==NULL)
GNUNET_asprintf(&cert_file_p2,"https.cert");
if (0 == stat (cert_file_p2, &sbuf ))
{
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [GNUnet-SVN] r12789 - gnunet/src/transport,
gnunet <=