From: Guus Sliepen Date: Fri, 26 Dec 2008 12:46:45 +0000 (+0000) Subject: Add missing parentheses in check for IPv4 multicast addresses. X-Git-Tag: release-1.0.9~1 X-Git-Url: https://git.tinc-vpn.org/git/browse?a=commitdiff_plain;h=a4d99ebf5042dedb609359cbbfc3fa4630b5fc70;p=tinc Add missing parentheses in check for IPv4 multicast addresses. --- diff --git a/src/route.c b/src/route.c index 742fbc28..ec01491c 100644 --- a/src/route.c +++ b/src/route.c @@ -376,7 +376,7 @@ static void route_ipv4(node_t *source, vpn_packet_t *packet) if(!checklength(source, packet, ether_size + ip_size)) return; - if(packet->data[30] & 0xf0 == 0xe0 || + if(((packet->data[30] & 0xf0) == 0xe0) || packet->data[30] == 255 && packet->data[31] == 255 && packet->data[32] == 255 &&