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;
 }
 



_______________________________________________
GNUnet-SVN mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/gnunet-svn

Reply via email to