]> The Tcpdump Group git mirrors - tcpdump/blobdiff - print-telnet.c
Remove EXTRACT_LE_8BITS() macro, use EXTRACT_8BITS() macro
[tcpdump] / print-telnet.c
index a66403468be78646498ca38e4099111cb500e046..10fad9fef7f6a5b8c9a045c8f59eeeccb0873829 100644 (file)
@@ -442,6 +442,7 @@ telnet_parse(netdissect_options *ndo, const u_char *sp, u_int length, int print)
                                break;
                        p++;
                }
+               ND_TCHECK(*p);
                if (*p != IAC)
                        goto pktend;