X-Git-Url: https://git.tcpdump.org/tcpdump/blobdiff_plain/113ed15b7ecae4a3523454344f9b3438ea97fdc7..refs/heads/master:/print-pim.c diff --git a/print-pim.c b/print-pim.c index 2a33c1ff..9241db32 100644 --- a/print-pim.c +++ b/print-pim.c @@ -21,9 +21,7 @@ /* \summary: Protocol Independent Multicast (PIM) printer */ -#ifdef HAVE_CONFIG_H #include -#endif #include "netdissect-stdinc.h" @@ -584,7 +582,6 @@ pimv2_addr_print(netdissect_options *ndo, break; default: return -1; - break; } hdrlen = 0; } @@ -756,7 +753,7 @@ pimv2_print(netdissect_options *ndo, case PIMV2_TYPE_HELLO: { uint16_t otype, olen; - while (len > 0) { + while (len != 0) { if (len < 4) goto trunc; otype = GET_BE_U_2(bp); @@ -813,7 +810,6 @@ pimv2_print(netdissect_options *ndo, ND_PRINT("[option length %u != 4]", olen); nd_print_invalid(ndo); return; - break; } break;