gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[GNUnet-SVN] r1762 - GNUnet/src/applications/fragmentation


From: grothoff
Subject: [GNUnet-SVN] r1762 - GNUnet/src/applications/fragmentation
Date: Fri, 19 Aug 2005 15:14:35 -0700 (PDT)

Author: grothoff
Date: 2005-08-19 15:14:34 -0700 (Fri, 19 Aug 2005)
New Revision: 1762

Modified:
   GNUnet/src/applications/fragmentation/fragmentation.c
Log:
fixing mantis 879

Modified: GNUnet/src/applications/fragmentation/fragmentation.c
===================================================================
--- GNUnet/src/applications/fragmentation/fragmentation.c       2005-08-19 
22:02:22 UTC (rev 1761)
+++ GNUnet/src/applications/fragmentation/fragmentation.c       2005-08-19 
22:14:34 UTC (rev 1762)
@@ -520,11 +520,18 @@
   fbmc->sender = *peer;
   fbmc->transmissionTime = targetTime;  
   fbmc->len = len;
-  if (SYSERR == bmc(&fbmc[1],
-                   bmcClosure,
-                   len)) {
-    FREE(fbmc);
-    return;
+  if (bmc == NULL) {
+    memcpy(&fbmc[1],
+          bmcClosure,
+          len);
+    FREE(bmcClosure);
+  } else {
+    if (SYSERR == bmc(&fbmc[1],
+                     bmcClosure,
+                     len)) {
+      FREE(fbmc);
+      return;
+    }
   }
   xlen = mtu - sizeof(P2P_fragmentation_MESSAGE);
   coreAPI->unicastCallback(peer,





reply via email to

[Prev in Thread] Current Thread [Next in Thread]