fixed stupid copy paste
authort3sserakt <t3ss@posteo.de>
Sun, 18 Feb 2018 08:39:17 +0000 (09:39 +0100)
committert3sserakt <t3ss@posteo.de>
Sun, 18 Feb 2018 13:00:29 +0000 (14:00 +0100)
src/multicast/gnunet-service-multicast.c

index 66f18da9fa629d3f09938e1cfcaf5f6a70c085b1..81921238892162a906523b50ae03f0be053a58b6 100644 (file)
@@ -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;