]> The Tcpdump Group git mirrors - tcpdump/commit
Clean up the check to make sure we can get the next header field.
authorGuy Harris <[email protected]>
Fri, 29 Mar 2019 23:16:46 +0000 (16:16 -0700)
committerGuy Harris <[email protected]>
Fri, 29 Mar 2019 23:16:46 +0000 (16:16 -0700)
commitfefd7f527fc27ef466d946a42d884eef7f9fc77c
tree4b8eb332da11bc5b41cf0076a933df3bac7613d1
parenta0ac048cf840c14691a2d69114133dbebe6617d1
Clean up the check to make sure we can get the next header field.

Just check whether the pointer to it is within the available packet data
- and, if it's not, report truncation.

While we're at it:

Make the initialization vector length unsigned; it's either zero or a
positive number.

Rename a variable used for the ciphertext len to ctlen.
print-esp.c