diff --git a/lib/vty.c b/lib/vty.c index deae16e327..edfd99dd8d 100644 --- a/lib/vty.c +++ b/lib/vty.c @@ -1291,8 +1291,7 @@ vty_read (struct thread *thread) { /* In case of telnet command */ int ret = 0; - if (vty->iac_sb_in_progress) - ret = vty_telnet_option (vty, buf + i, nbytes - i); + ret = vty_telnet_option (vty, buf + i, nbytes - i); vty->iac = 0; i += ret; continue;