gnunet-svn
[Top][All Lists]
Advanced

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

[GNUnet-SVN] [gnunet] branch master updated: fixed stupid copy paste


From: gnunet
Subject: [GNUnet-SVN] [gnunet] branch master updated: fixed stupid copy paste
Date: Sun, 18 Feb 2018 14:00:39 +0100

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

t3sserakt pushed a commit to branch master
in repository gnunet.

The following commit(s) were added to refs/heads/master by this push:
     new b25919909 fixed stupid copy paste
b25919909 is described below

commit b259199093ee820e691f1db61650464443cbe964
Author: t3sserakt <address@hidden>
AuthorDate: Sun Feb 18 09:39:17 2018 +0100

    fixed stupid copy paste
---
 src/multicast/gnunet-service-multicast.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/multicast/gnunet-service-multicast.c 
b/src/multicast/gnunet-service-multicast.c
index 66f18da9f..819212388 100644
--- a/src/multicast/gnunet-service-multicast.c
+++ b/src/multicast/gnunet-service-multicast.c
@@ -1450,7 +1450,7 @@ check_client_member_join (void *cls,
   uint16_t msg_size = ntohs (msg->header.size);
   struct GNUNET_PeerIdentity *relays = (struct GNUNET_PeerIdentity *) &msg[1];
   uint32_t relay_count = ntohl (msg->relay_count);
-  if (UINT32_MAX - relay_count > sizeof (*relays)){
+  if (UINT32_MAX / relay_count > sizeof (*relays)){
       GNUNET_log (GNUNET_ERROR_TYPE_ERROR,
                     "relay_size exceeds UINT32_MAX!");
       return GNUNET_SYSERR;

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



reply via email to

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