]> The Tcpdump Group git mirrors - tcpdump/commitdiff
Get rid of dead code.
authorGuy Harris <[email protected]>
Tue, 16 Jan 2018 03:23:25 +0000 (19:23 -0800)
committerGuy Harris <[email protected]>
Tue, 16 Jan 2018 03:23:25 +0000 (19:23 -0800)
The loop runs until total_subobj_len is 0, so it'll always be zero if we
exit the loop normally, and the test of whether it's non-zero will
always fail.

Fixes Coverity CID 1427591.

print-rsvp.c

index 8d89abf43fb3300024628ab67c7583e6d77f568f..12b51f27f46d35a0aa94944dc36e1a72beeb08aa 100644 (file)
@@ -1329,11 +1329,6 @@ rsvp_obj_print(netdissect_options *ndo,
                     obj_tptr+=subobj_len;
                     obj_tlen+=subobj_len;
                }
-
-                if (total_subobj_len) {
-                    /* unless we have a TLV parser lets just hexdump */
-                    hexdump=TRUE;
-                }
                 break;
 
             default: