aboutsummaryrefslogtreecommitdiff
path: root/print-telnet.c
diff options
context:
space:
mode:
authorGordon Tetlow <gordon@FreeBSD.org>2017-09-18 04:10:54 +0000
committerGordon Tetlow <gordon@FreeBSD.org>2017-09-18 04:10:54 +0000
commit4533b6d8a9b95fc043b72b3656b98e79ac839041 (patch)
tree4ac156eafa4323886af859c09363dff43cc44106 /print-telnet.c
parentd79b843cb78484ea27f877f1541055e1a6a5a4d3 (diff)
Diffstat (limited to 'print-telnet.c')
-rw-r--r--print-telnet.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/print-telnet.c b/print-telnet.c
index a66403468be7..10fad9fef7f6 100644
--- a/print-telnet.c
+++ b/print-telnet.c
@@ -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;