make check for end of loop in icmppacketdistributor more understandable (|= --> =)
authorChristian Herdtweck <christian.herdtweck@intra2net.com>
Thu, 19 Feb 2015 08:32:44 +0000 (09:32 +0100)
committerChristian Herdtweck <christian.herdtweck@intra2net.com>
Thu, 19 Feb 2015 08:32:44 +0000 (09:32 +0100)
src/icmp/icmppinger.cpp

index d5c2b50..9d2f864 100644 (file)
@@ -516,7 +516,7 @@ void IcmpPacketDistributor::handle_receive(
             bool packet_matches = false;
             BOOST_FOREACH( const IcmpPingerItem &pinger, PingerList )
             {
-                packet_matches |= pinger->handle_receive_icmp_packet(
+                packet_matches = pinger->handle_receive_icmp_packet(
                                                 icmp_packet, bytes_transferred);
                 if (packet_matches)
                     break;