From: Denis Ovsienko Date: Sat, 21 Feb 2015 22:12:52 +0000 (+0000) Subject: OpenFlow 1.0: address a Coverity warning X-Git-Tag: tcpdump-4.7.2~1^2~21 X-Git-Url: https://git.tcpdump.org/tcpdump/commitdiff_plain/b4b1df90377e1a25bc167c2a13b3d8882936d48c OpenFlow 1.0: address a Coverity warning --- diff --git a/print-openflow-1.0.c b/print-openflow-1.0.c index 6e50803b..f86a9412 100644 --- a/print-openflow-1.0.c +++ b/print-openflow-1.0.c @@ -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)) {