Commit 94d47acb authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont

Avoid infinite loop when the telnet session is closed client-side.

Signed-off-by: default avatarRémi Denis-Courmont <rdenis@simphalempin.com>
(cherry picked from commit 51d3696e)

Conflicts:

	modules/control/telnet.c
parent a646b5b5
......@@ -382,7 +382,7 @@ static void Run( intf_thread_t *p_intf )
}
#endif
if (i_recv <= 0 && ( end || errno != EAGAIN ) )
if( i_recv == 0 || ( i_recv == -1 && ( end || errno != EAGAIN ) ) )
goto drop;
}
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment