summaryrefslogtreecommitdiff
path: root/print-ip6opts.c
diff options
context:
space:
mode:
authorFrancois-Xavier Le Bail <devel.fx.lebail@orange.fr>2017-12-09 17:15:55 +0100
committerFrancois-Xavier Le Bail <devel.fx.lebail@orange.fr>2017-12-10 11:40:35 +0100
commit6bb65331a5f9d35186238af0ed736a3949616bc2 (patch)
tree0a444da5c885e8a62952429175c8fb74a0caa426 /print-ip6opts.c
parent07ac438e08e5ffed3539e10d78f1cfc7d221d591 (diff)
downloadtcpdump-6bb65331a5f9d35186238af0ed736a3949616bc2.tar.gz
Use more the EXTRACT_U_1() macro (53/n)
Assignment, p[n], (more)
Diffstat (limited to 'print-ip6opts.c')
-rw-r--r--print-ip6opts.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/print-ip6opts.c b/print-ip6opts.c
index 7ed8c013..5cf8ba4a 100644
--- a/print-ip6opts.c
+++ b/print-ip6opts.c
@@ -52,7 +52,7 @@ ip6_sopt_print(netdissect_options *ndo, const u_char *bp, int len)
optlen = 1;
else {
if (i + 1 < len)
- optlen = bp[i + 1] + 2;
+ optlen = EXTRACT_U_1(bp + i + 1) + 2;
else
goto trunc;
}
@@ -98,7 +98,7 @@ ip6_opt_print(netdissect_options *ndo, const u_char *bp, int len)
optlen = 1;
else {
if (i + 1 < len)
- optlen = bp[i + 1] + 2;
+ optlen = EXTRACT_U_1(bp + i + 1) + 2;
else
goto trunc;
}