icmp6: make opt_len a full-width u_int.

That way, when it's multiplied by 8 (shifted left 3 positions), the
result will be a u_int, as it should be, not a signed int.
This commit is contained in:
Guy Harris 2020-05-26 22:05:17 -07:00
parent bca49c19e5
commit 56504177e8

View File

@ -1429,7 +1429,8 @@ static int
icmp6_opt_print(netdissect_options *ndo, const u_char *bp, int resid)
{
const struct nd_opt_hdr *op;
uint8_t opt_type, opt_len;
uint8_t opt_type;
u_int opt_len;
const struct nd_opt_prefix_info *opp;
const struct nd_opt_mtu *opm;
const struct nd_opt_rdnss *oprd;