From: t3sserakt Date: Sun, 18 Feb 2018 08:39:17 +0000 (+0100) Subject: fixed stupid copy paste X-Git-Tag: v0.11.0pre66~207 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=b259199093ee820e691f1db61650464443cbe964;p=oweals%2Fgnunet.git fixed stupid copy paste --- 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;