]> The Tcpdump Group git mirrors - tcpdump/blobdiff - print-vqp.c
Add CAP_FCNTL and use cap_fcntls_limit().
[tcpdump] / print-vqp.c
index 04dbcc2ecc64fabc14356348c197bf03a00b9ddb..ce3572ac520898bb5fc5d281ae7f5b32a3334194 100644 (file)
@@ -167,8 +167,7 @@ vqp_print(netdissect_options *ndo, register const u_char *pptr, register u_int l
         }
 
         /* did we capture enough for fully decoding the object ? */
-        if (!ND_TTEST2(*tptr, vqp_obj_len))
-            goto trunc;
+        ND_TCHECK2(*tptr, vqp_obj_len);
 
         switch(vqp_obj_type) {
        case VQP_OBJ_IP_ADDRESS: