gnunet-svn
[Top][All Lists]
Advanced

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

[GNUnet-SVN] [gnunet] branch master updated: fix missing NBO conversions


From: gnunet
Subject: [GNUnet-SVN] [gnunet] branch master updated: fix missing NBO conversions
Date: Wed, 27 Feb 2019 07:12:37 +0100

This is an automated email from the git hooks/post-receive script.

grothoff pushed a commit to branch master
in repository gnunet.

The following commit(s) were added to refs/heads/master by this push:
     new b6428a209 fix missing NBO conversions
b6428a209 is described below

commit b6428a2092bf7e873174c7b3ffaebf6b8094aae4
Author: Christian Grothoff <address@hidden>
AuthorDate: Wed Feb 27 07:12:32 2019 +0100

    fix missing NBO conversions
---
 src/cadet/gnunet-service-cadet_channel.c | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/src/cadet/gnunet-service-cadet_channel.c 
b/src/cadet/gnunet-service-cadet_channel.c
index 10df917ff..cd5093c46 100644
--- a/src/cadet/gnunet-service-cadet_channel.c
+++ b/src/cadet/gnunet-service-cadet_channel.c
@@ -1318,9 +1318,9 @@ GCCH_handle_channel_plaintext_data (struct CadetChannel 
*ch,
          ((msg->mid.mid == ch->mid_recv.mid) &&
           (GNUNET_YES == ch->reliable)) ||
          ((GNUNET_NO == ch->reliable) &&
-          (msg->mid.mid >= ch->mid_recv.mid) &&
+          (ntohl (msg->mid.mid) >= ntohl (ch->mid_recv.mid)) &&
           ((NULL == ccc->head_recv) ||
-           (msg->mid.mid < ccc->head_recv->mid.mid))) )
+           (ntohl (msg->mid.mid) < ntohl (ccc->head_recv->mid.mid)))) )
     {
       LOG (GNUNET_ERROR_TYPE_DEBUG,
            "Giving %u bytes of payload with MID %u from %s to client %s\n",
@@ -1430,7 +1430,7 @@ GCCH_handle_channel_plaintext_data (struct CadetChannel 
*ch,
       ccc->num_recv--;
       /* Do not process duplicate MID */
       if ((msg->mid.mid == next_msg->mid.mid) || /* Duplicate */
-          (msg->mid.mid < ch->mid_recv.mid)) /* Old */
+          (ntohl (msg->mid.mid) < ntohl (ch->mid_recv.mid))) /* Old */
       {
         /* Duplicate within the queue, drop */
         LOG (GNUNET_ERROR_TYPE_DEBUG,

-- 
To stop receiving notification emails like this one, please contact
address@hidden



reply via email to

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