diff options
author | Francois-Xavier Le Bail <devel.fx.lebail@orange.fr> | 2017-12-09 12:32:00 +0100 |
---|---|---|
committer | Francois-Xavier Le Bail <devel.fx.lebail@orange.fr> | 2017-12-09 14:05:25 +0100 |
commit | 07ac438e08e5ffed3539e10d78f1cfc7d221d591 (patch) | |
tree | 8e07185c1f646ef08c85bbb7d9a075b32e65272f /print-ip.c | |
parent | 1cfd6cd2ac8acecbcf16e083a6cd272a19ec994e (diff) | |
download | tcpdump-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.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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; |