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) {
_______________________________________________
GNUnet-SVN mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/gnunet-svn