]> The Tcpdump Group git mirrors - tcpdump/commitdiff
Squelch a Coverity warning.
authorGuy Harris <[email protected]>
Fri, 6 Feb 2015 19:42:00 +0000 (11:42 -0800)
committerGuy Harris <[email protected]>
Fri, 6 Feb 2015 19:42:00 +0000 (11:42 -0800)
For unknown PDU types, we return 0 whether print_unknown_data() succeeds
or fails; don't bother checking whether it succeeds, Just Do It.

print-isoclns.c

index d6dfcf21a110e0bc1afb12f51c1cdb3f5d1233ce..e990a91d4893092ddfb9a455b90c3afec6bea1b2 100644 (file)
@@ -2414,8 +2414,7 @@ isis_print(netdissect_options *ndo,
        break;
 
     default:
-       if (!print_unknown_data(ndo, pptr, "\n\t  ", length))
-           return(0);
+       (void)print_unknown_data(ndo, pptr, "\n\t  ", length);
        return (0);
     }