diff options
author | t3sserakt <t3ss@posteo.de> | 2018-02-18 09:39:17 +0100 |
---|---|---|
committer | t3sserakt <t3ss@posteo.de> | 2018-02-18 14:00:29 +0100 |
commit | b259199093ee820e691f1db61650464443cbe964 (patch) | |
tree | 28dbfa373ad8087e1b916923ed759048ed36fb27 /src/multicast | |
parent | abd12cabccd56f7574548d6d576b772220389b7b (diff) | |
download | gnunet-b259199093ee820e691f1db61650464443cbe964.tar.gz gnunet-b259199093ee820e691f1db61650464443cbe964.zip |
fixed stupid copy paste
Diffstat (limited to 'src/multicast')
-rw-r--r-- | src/multicast/gnunet-service-multicast.c | 2 |
1 files changed, 1 insertions, 1 deletions
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, | |||
1450 | uint16_t msg_size = ntohs (msg->header.size); | 1450 | uint16_t msg_size = ntohs (msg->header.size); |
1451 | struct GNUNET_PeerIdentity *relays = (struct GNUNET_PeerIdentity *) &msg[1]; | 1451 | struct GNUNET_PeerIdentity *relays = (struct GNUNET_PeerIdentity *) &msg[1]; |
1452 | uint32_t relay_count = ntohl (msg->relay_count); | 1452 | uint32_t relay_count = ntohl (msg->relay_count); |
1453 | if (UINT32_MAX - relay_count > sizeof (*relays)){ | 1453 | if (UINT32_MAX / relay_count > sizeof (*relays)){ |
1454 | GNUNET_log (GNUNET_ERROR_TYPE_ERROR, | 1454 | GNUNET_log (GNUNET_ERROR_TYPE_ERROR, |
1455 | "relay_size exceeds UINT32_MAX!"); | 1455 | "relay_size exceeds UINT32_MAX!"); |
1456 | return GNUNET_SYSERR; | 1456 | return GNUNET_SYSERR; |