diff --git a/appl/telnet/telnet/authenc.c b/appl/telnet/telnet/authenc.c index ee7a1f5c0..64f81402f 100644 --- a/appl/telnet/telnet/authenc.c +++ b/appl/telnet/telnet/authenc.c @@ -62,13 +62,14 @@ net_encrypt(void) int telnet_spin(void) { - extern int scheduler_lockout_tty; + int ret = 0; scheduler_lockout_tty = 1; - Scheduler(0); + if (Scheduler(0) == -1) + ret = 1; scheduler_lockout_tty = 0; - return 0; + return ret; }