X-Git-Url: https://git.tcpdump.org/tcpdump/blobdiff_plain/39c8c55aa9ff84244cf558b9a957b78933babf0a..d7b497cac78b6e22a66a6bae9bdec60a8044f67a:/print-telnet.c diff --git a/print-telnet.c b/print-telnet.c index fe461baf..e3782177 100644 --- a/print-telnet.c +++ b/print-telnet.c @@ -516,7 +516,7 @@ telnet_print(netdissect_options *ndo, const u_char *sp, u_int length) osp = sp; ND_TCHECK(*sp); - while (length > 0 && *sp == IAC) { + while (length > 0 && EXTRACT_U_1(sp) == IAC) { /* * Parse the Telnet command without printing it, * to determine its length.