gnunet-svn
[Top][All Lists]
Advanced

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

[GNUnet-SVN] r36415 - gnunet/src/cadet


From: gnunet
Subject: [GNUnet-SVN] r36415 - gnunet/src/cadet
Date: Fri, 2 Oct 2015 05:37:39 +0200

Author: bartpolot
Date: 2015-10-02 05:37:39 +0200 (Fri, 02 Oct 2015)
New Revision: 36415

Modified:
   gnunet/src/cadet/gnunet-service-cadet_tunnel.c
Log:
- fix processing of messages with no payload (keepalives)

Modified: gnunet/src/cadet/gnunet-service-cadet_tunnel.c
===================================================================
--- gnunet/src/cadet/gnunet-service-cadet_tunnel.c      2015-10-02 03:37:38 UTC 
(rev 36414)
+++ gnunet/src/cadet/gnunet-service-cadet_tunnel.c      2015-10-02 03:37:39 UTC 
(rev 36415)
@@ -3032,7 +3032,6 @@
   sprintf (buf, "# received encrypted of type %hu (%s)", type, GC_m2s (type));
   GNUNET_STATISTICS_update (stats, buf, 1, GNUNET_NO);
 
-
   switch (type)
   {
     case GNUNET_MESSAGE_TYPE_CADET_KEEPALIVE:
@@ -3139,7 +3138,7 @@
      this loop may be unaligned, see util's MST for
      how to do this right. */
   off = 0;
-  while (off + sizeof (struct GNUNET_MessageHeader) < decrypted_size)
+  while (off + sizeof (struct GNUNET_MessageHeader) <= decrypted_size)
   {
     uint16_t msize;
 




reply via email to

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