]> The Tcpdump Group git mirrors - tcpdump/blobdiff - print-cnfp.c
Revert partially the commit 21b1273
[tcpdump] / print-cnfp.c
index 4799ce1464160fc6b767795fa20458104d80e47a..69f905f5c94ea7c6ce3b42112fa206749e2cb99c 100644 (file)
@@ -468,7 +468,6 @@ cnfp_print(netdissect_options *ndo, const u_char *cp)
         * First 2 bytes are the version number.
         */
        ndo->ndo_protocol = "cnfp";
-       ND_TCHECK_2(cp);
        ver = GET_BE_U_2(cp);
        switch (ver) {
 
@@ -488,9 +487,4 @@ cnfp_print(netdissect_options *ndo, const u_char *cp)
                ND_PRINT("NetFlow v%x", ver);
                break;
        }
-       return;
-
-trunc:
-       nd_print_trunc(ndo);
-       return;
 }