summaryrefslogtreecommitdiff
path: root/print-icmp.c
diff options
context:
space:
mode:
Diffstat (limited to 'print-icmp.c')
-rw-r--r--print-icmp.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/print-icmp.c b/print-icmp.c
index 6e517d8d..ff65a854 100644
--- a/print-icmp.c
+++ b/print-icmp.c
@@ -559,7 +559,7 @@ icmp_print(netdissect_options *ndo, const u_char *bp, u_int plen, const u_char *
}
ND_PRINT((ndo, "ICMP %s, length %u", str, plen));
if (ndo->ndo_vflag && !fragmented) { /* don't attempt checksumming if this is a frag */
- if (ND_TTEST2(*bp, plen)) {
+ if (ND_TTEST_LEN(bp, plen)) {
uint16_t sum;
vec[0].ptr = (const uint8_t *)(const void *)dp;