[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[GNUnet-SVN] r1526 - GNUnet/src/applications/advertising
From: |
grothoff |
Subject: |
[GNUnet-SVN] r1526 - GNUnet/src/applications/advertising |
Date: |
Thu, 14 Jul 2005 12:44:19 -0700 (PDT) |
Author: grothoff
Date: 2005-07-14 12:44:16 -0700 (Thu, 14 Jul 2005)
New Revision: 1526
Modified:
GNUnet/src/applications/advertising/advertising.c
Log:
fix
Modified: GNUnet/src/applications/advertising/advertising.c
===================================================================
--- GNUnet/src/applications/advertising/advertising.c 2005-07-14 19:30:35 UTC
(rev 1525)
+++ GNUnet/src/applications/advertising/advertising.c 2005-07-14 19:44:16 UTC
(rev 1526)
@@ -267,9 +267,13 @@
/* build message to send, ping must contain return-information,
such as a selection of our HELOs... */
- mtu = transport->getMTU(tsession->ttype) - P2P_MESSAGE_OVERHEAD;
- if (mtu == 0)
+ mtu = transport->getMTU(tsession->ttype);
+ if (mtu == 0) {
mtu = 2048; /* bound size */
+ } else {
+ GNUNET_ASSERT(mtu > P2P_MESSAGE_OVERHEAD);
+ mtu -= P2P_MESSAGE_OVERHEAD;
+ }
buffer = MALLOC(mtu);
copy = MALLOC(HELO_Message_size(msg));
memcpy(copy,
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [GNUnet-SVN] r1526 - GNUnet/src/applications/advertising,
grothoff <=