]> The Tcpdump Group git mirrors - tcpdump/commit
pgm: don't advance bp by the option haeder length twice.
authorGuy Harris <[email protected]>
Tue, 22 Aug 2023 19:23:20 +0000 (12:23 -0700)
committerGuy Harris <[email protected]>
Tue, 22 Aug 2023 19:23:20 +0000 (12:23 -0700)
commit09b0447fad52298440e05e7368f9d24492d0b0fe
tree7b8cf3eea0ac352724c194aab338f4205adf0785
parent5a5646bbc9e4221971377d256f8af2355359741b
pgm: don't advance bp by the option haeder length twice.

At those points, we've already advanced it by the option header length,
and opt_len includes that length, so advance bp by opt_len minus the
option header length.

Fixes #1024.
print-pgm.c