From: Guus Sliepen Date: Mon, 7 Oct 2019 10:45:12 +0000 (+0200) Subject: Also always send an ACK back when the SYN or FIN bit is set. X-Git-Url: http://git.meshlink.io/?p=utcp;a=commitdiff_plain;h=7baf55a28cf48163c007ee2ff56678371d78c990 Also always send an ACK back when the SYN or FIN bit is set. --- diff --git a/utcp.c b/utcp.c index d0e56d2..2ed3217 100644 --- a/utcp.c +++ b/utcp.c @@ -1011,7 +1011,7 @@ ssize_t utcp_recv(struct utcp *utcp, const void *data, size_t len) { ptr += 2; } - bool has_data = len; + bool has_data = len || (hdr.ctl & (SYN | FIN)); // Try to match the packet to an existing connection