]> The Tcpdump Group git mirrors - tcpdump/blobdiff - print-pim.c
Fix the pointer tests in the non-ndoified TTEST2() macro as well.
[tcpdump] / print-pim.c
index 72a6166db65936f221ffd1a6bc8cc727ee24cf92..567d3d9954ca508ddd6fa0e54f44e9a93516a069 100644 (file)
@@ -748,8 +748,7 @@ pimv2_print(netdissect_options *ndo,
        {
                struct ip *ip;
 
-               if (!ND_TTEST2(*(bp+4), PIMV2_REGISTER_FLAG_LEN))
-                       goto trunc;
+               ND_TCHECK2(*(bp + 4), PIMV2_REGISTER_FLAG_LEN);
 
                ND_PRINT((ndo, ", Flags [ %s ]\n\t",
                          tok2str(pimv2_register_flag_values,