[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[GNUnet-SVN] r1075 - GNUnet/src/server
From: |
grothoff |
Subject: |
[GNUnet-SVN] r1075 - GNUnet/src/server |
Date: |
Sun, 26 Jun 2005 09:38:18 -0700 (PDT) |
Author: grothoff
Date: 2005-06-26 09:38:15 -0700 (Sun, 26 Jun 2005)
New Revision: 1075
Modified:
GNUnet/src/server/connection.c
Log:
reset sequence number on reconnect
Modified: GNUnet/src/server/connection.c
===================================================================
--- GNUnet/src/server/connection.c 2005-06-26 16:33:25 UTC (rev 1074)
+++ GNUnet/src/server/connection.c 2005-06-26 16:38:15 UTC (rev 1075)
@@ -493,6 +493,7 @@
BufferEntry * be;
be = (BufferEntry*) MALLOC(sizeof(BufferEntry));
+ memset(be, 0, sizeof(BufferEntry));
be->isAlive
= 0;
be->status
@@ -1391,13 +1392,13 @@
else
prev->overflowChain = root;
}
- memcpy(&root->session.sender,
- hostId,
- sizeof(PeerIdentity));
+ root->session.sender = *hostId;
}
if ( (root->status == STAT_DOWN) &&
- (establishSession == YES) )
+ (establishSession == YES) ) {
+ root->lastSequenceNumberReceived = 0;
session->tryConnect(hostId);
+ }
return root;
}
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [GNUnet-SVN] r1075 - GNUnet/src/server,
grothoff <=