]> The Tcpdump Group git mirrors - tcpdump/commit
Check for TLV length too small.
authorGuy Harris <[email protected]>
Fri, 15 Aug 2014 00:14:32 +0000 (17:14 -0700)
committerGuy Harris <[email protected]>
Fri, 15 Aug 2014 00:14:32 +0000 (17:14 -0700)
commit5511e8f79f0ac96671bab23223397881eba8b806
tree0f3e5b30c2328653c281f25e50ddddab4d7a2d27
parent02a01bbaae296567e4f5f8eca52610a4353f600c
Check for TLV length too small.

The TLV length includes the T and the L, so it must be at least 4.

This means we don't need the "avoid infinite loop" check later; that
check was wrong, as per GitHub issue #401 and #402; this fixes #402,
which has a different patch for that bug.
print-cdp.c