X-Git-Url: https://git.tcpdump.org/tcpdump/blobdiff_plain/61c422a88caefe986c2bc0a7f2f3028f696fa5cd..1a04b92e365f5ed01ca38619b41bcc4fc9cbd63c:/print-telnet.c diff --git a/print-telnet.c b/print-telnet.c index 8ff527b4..41e24462 100644 --- a/print-telnet.c +++ b/print-telnet.c @@ -443,8 +443,8 @@ telnet_parse(netdissect_options *ndo, const u_char *sp, u_int length, int print) break; p++; } - ND_TCHECK(*p); - if (*p != IAC) + ND_TCHECK_1(p); + if (EXTRACT_U_1(p) != IAC) goto pktend; switch (x) { @@ -515,7 +515,7 @@ telnet_print(netdissect_options *ndo, const u_char *sp, u_int length) osp = sp; - ND_TCHECK(*sp); + ND_TCHECK_1(sp); while (length > 0 && EXTRACT_U_1(sp) == IAC) { /* * Parse the Telnet command without printing it, @@ -544,7 +544,7 @@ telnet_print(netdissect_options *ndo, const u_char *sp, u_int length) sp += l; length -= l; - ND_TCHECK(*sp); + ND_TCHECK_1(sp); } if (!first) { if (ndo->ndo_Xflag && 2 < ndo->ndo_vflag)