summaryrefslogtreecommitdiff
path: root/print-ip.c
diff options
context:
space:
mode:
authorFrancois-Xavier Le Bail <devel.fx.lebail@orange.fr>2017-12-09 12:32:00 +0100
committerFrancois-Xavier Le Bail <devel.fx.lebail@orange.fr>2017-12-09 14:05:25 +0100
commit07ac438e08e5ffed3539e10d78f1cfc7d221d591 (patch)
tree8e07185c1f646ef08c85bbb7d9a075b32e65272f /print-ip.c
parent1cfd6cd2ac8acecbcf16e083a6cd272a19ec994e (diff)
downloadtcpdump-07ac438e08e5ffed3539e10d78f1cfc7d221d591.tar.gz
Use more the EXTRACT_U_1() macro (52/n)
Assignment, p[n]
Diffstat (limited to 'print-ip.c')
-rw-r--r--print-ip.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/print-ip.c b/print-ip.c
index 0974fbad..036c57cd 100644
--- a/print-ip.c
+++ b/print-ip.c
@@ -114,7 +114,7 @@ ip_finddst(netdissect_options *ndo,
len = 1;
else {
ND_TCHECK_1(cp + 1);
- len = cp[1];
+ len = EXTRACT_U_1(cp + 1);
if (len < 2)
break;
}
@@ -266,7 +266,7 @@ ip_optprint(netdissect_options *ndo,
else {
ND_TCHECK_1(cp + 1);
- option_len = cp[1];
+ option_len = EXTRACT_U_1(cp + 1);
if (option_len < 2) {
ND_PRINT((ndo, " [bad length %u]", option_len));
return;