]> The Tcpdump Group git mirrors - tcpdump/commitdiff
AoE: Fix aoev1_issue_print(). [skip ci]
authorDenis Ovsienko <[email protected]>
Thu, 24 Sep 2020 23:37:13 +0000 (00:37 +0100)
committerDenis Ovsienko <[email protected]>
Thu, 24 Sep 2020 23:40:19 +0000 (00:40 +0100)
Since commit 215c14cb len is decreasing as cp is increasing, get that
right.

print-aoe.c

index 4ede55dc3662d7a77c001c3f4f62cad64e43bd3f..558eeae2fa8e29bc71accb22a6be4e5b7422b163 100644 (file)
@@ -191,7 +191,7 @@ aoev1_issue_print(netdissect_options *ndo,
        cp += 2;
        len -= 2;
        /* Data */
-       if (len > AOEV1_ISSUE_ARG_LEN)
+       if (len)
                ND_PRINT("\n\tData: %u bytes", len);
        return;