]> The Tcpdump Group git mirrors - tcpdump/blobdiff - print-telnet.c
Use more the EXTRACT_U_1() macro (40/n)
[tcpdump] / print-telnet.c
index fe461bafd6651c1a07672f0e66d2bc34fb7662b2..e3782177a9f4c0534bb3759030479cf37ec51e74 100644 (file)
@@ -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.