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

satip: fix non-sensical logic (fixes #19634)

(cherry picked from commit 15660bca)
Signed-off-by: Rémi Denis-Courmont's avatarRémi Denis-Courmont <>
parent 1b3f5f52
......@@ -410,7 +410,7 @@ static void satip_teardown(void *data) {
/* Some SATIP servers send a few empty extra bytes after TEARDOWN.
* Try to read them, to avoid a TCP socket reset */
while ((len = recv(sys->tcp_sock, discard_buf, sizeof(discard_buf), 0) > 0));
while (recv(sys->tcp_sock, discard_buf, sizeof(discard_buf), 0) > 0);
/* Extra sleep for compatibility with some satip servers, that
* can't handle new sessions right after teardown */
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