X-Git-Url: https://git.tcpdump.org/tcpdump/blobdiff_plain/dde3aa997587ad5423318ca3a2de56096dc15aa2..61c422a88caefe986c2bc0a7f2f3028f696fa5cd:/print-telnet.c diff --git a/print-telnet.c b/print-telnet.c index e3782177..8ff527b4 100644 --- a/print-telnet.c +++ b/print-telnet.c @@ -439,7 +439,7 @@ telnet_parse(netdissect_options *ndo, const u_char *sp, u_int length, int print) p = sp; while (length > (u_int)(p + 1 - sp)) { ND_TCHECK_2(p); - if (p[0] == IAC && p[1] == SE) + if (EXTRACT_U_1(p) == IAC && EXTRACT_U_1(p + 1) == SE) break; p++; }