]> The Tcpdump Group git mirrors - tcpdump/blobdiff - print-telnet.c
Use more the ND_TTEST_1() macro
[tcpdump] / print-telnet.c
index bbc4f231608fcb57a80b5bc550cea46d6882d02d..41e24462e199caa9ed1a1be0015e595caff1b2ca 100644 (file)
@@ -444,7 +444,7 @@ telnet_parse(netdissect_options *ndo, const u_char *sp, u_int length, int print)
                        p++;
                }
                ND_TCHECK_1(p);
-               if (*p != IAC)
+               if (EXTRACT_U_1(p) != IAC)
                        goto pktend;
 
                switch (x) {