]> The Tcpdump Group git mirrors - tcpdump/commitdiff
OpenFlow 1.0: address a Coverity warning
authorDenis Ovsienko <[email protected]>
Sat, 21 Feb 2015 22:12:52 +0000 (22:12 +0000)
committerDenis Ovsienko <[email protected]>
Sat, 21 Feb 2015 22:13:56 +0000 (22:13 +0000)
print-openflow-1.0.c

index 6e50803bcd39b0789efa87d1556e3dabe815aafa..f86a9412f79671d906b86155d06ce643c209eb97 100644 (file)
@@ -909,8 +909,7 @@ of10_bsn_message_print(netdissect_options *ndo,
                 * +---------------+---------------+--------
                 *
                 */
-               if (len < 4)
-                       goto corrupt;
+               /* already checked that len >= 4 */
                /* data */
                ND_PRINT((ndo, ", data '"));
                if (fn_printn(ndo, cp, len - 4, ep)) {