From b259199093ee820e691f1db61650464443cbe964 Mon Sep 17 00:00:00 2001 From: t3sserakt Date: Sun, 18 Feb 2018 09:39:17 +0100 Subject: [PATCH] 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; -- 2.25.1