]> The Tcpdump Group git mirrors - tcpdump/commit
Don't dereference the header assuming alignment.
authorGuy Harris <[email protected]>
Tue, 26 Dec 2017 09:17:12 +0000 (01:17 -0800)
committerGuy Harris <[email protected]>
Tue, 26 Dec 2017 09:17:12 +0000 (01:17 -0800)
commita1fe927e16ad7e3845c76a09e44e5a09c8919b6c
tree03c17aaca05a785fd5463b029a061627820602c3
parent1fdde1543ecb9c70ad051add9917fb49bd4d14bf
Don't dereference the header assuming alignment.

It's probably safe to do so, but don't rely on it.

Also, use parens around the argument to sizeof, to match the style used
elsewhere.
print-enc.c