]> The Tcpdump Group git mirrors - tcpdump/commit
Fix check for malformed frames.
authorGuy Harris <[email protected]>
Wed, 19 May 2010 02:25:18 +0000 (19:25 -0700)
committerGuy Harris <[email protected]>
Wed, 19 May 2010 02:25:18 +0000 (19:25 -0700)
commitd6c865b1443d3e904cd0225ebd2883b034c5a782
tree46811c2dee9ac8b7f5ef3579a1a84bf156a43ac9
parent04347dbebfcb739e6b948af9558a707a06e1271e
Fix check for malformed frames.

Don't get confused by some malformed frames - always return -1 - and
assign the result of extract_header_length() to an int, so we don't get
warnings when we compare it against -1.  (Its return value always fits
in an int.)
print-802_15_4.c