[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[GNUnet-SVN] r1183 - in GNUnet/src: applications/identity server
From: |
grothoff |
Subject: |
[GNUnet-SVN] r1183 - in GNUnet/src: applications/identity server |
Date: |
Fri, 1 Jul 2005 04:29:38 -0700 (PDT) |
Author: grothoff
Date: 2005-07-01 04:29:33 -0700 (Fri, 01 Jul 2005)
New Revision: 1183
Modified:
GNUnet/src/applications/identity/identity.c
GNUnet/src/server/connection.c
Log:
up
Modified: GNUnet/src/applications/identity/identity.c
===================================================================
--- GNUnet/src/applications/identity/identity.c 2005-07-01 11:11:44 UTC (rev
1182)
+++ GNUnet/src/applications/identity/identity.c 2005-07-01 11:29:33 UTC (rev
1183)
@@ -598,14 +598,19 @@
sizeof(HELO_Message),
&buffer);
if (size != sizeof(HELO_Message)) {
- if (0 == UNLINK(fn))
- LOG(LOG_WARNING,
- _("Removed file '%s' containing invalid HELO data.\n"),
- fn);
- else
- LOG_FILE_STRERROR(LOG_ERROR,
- "unlink",
- fn);
+ struct stat buf;
+
+ if (0 == STAT(fn,
+ &buf)) {
+ if (0 == UNLINK(fn))
+ LOG(LOG_WARNING,
+ _("Removed file '%s' containing invalid HELO data.\n"),
+ fn);
+ else
+ LOG_FILE_STRERROR(LOG_ERROR,
+ "unlink",
+ fn);
+ }
FREE(fn);
*result = NULL;
MUTEX_UNLOCK(&lock_);
Modified: GNUnet/src/server/connection.c
===================================================================
--- GNUnet/src/server/connection.c 2005-07-01 11:11:44 UTC (rev 1182)
+++ GNUnet/src/server/connection.c 2005-07-01 11:29:33 UTC (rev 1183)
@@ -2159,7 +2159,7 @@
if (OK ==
identity->identity2Helo(&be->session.sender,
i,
- NO,
+ YES,
&helo)) {
if (OK ==
transport->connect(helo,
@@ -2177,7 +2177,7 @@
}
if (i == MAX_PROTOCOL_NUMBER) {
LOG(LOG_WARNING,
- _("Session confirmed, but cannot connect! (bug?)"));
+ _("Session confirmed, but cannot connect! (bug?)\n"));
}
}
if (be->session.tsession != NULL) {
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [GNUnet-SVN] r1183 - in GNUnet/src: applications/identity server,
grothoff <=