From: Guus Sliepen Date: Sat, 9 Aug 2014 17:14:38 +0000 (+0200) Subject: Update snd.una when receiving an ACK in the SYN_RECEIVED state. X-Git-Url: http://git.meshlink.io/?p=utcp;a=commitdiff_plain;h=5b99f2504f553edfd31ce5d0b05f825dd8dc4632 Update snd.una when receiving an ACK in the SYN_RECEIVED state. --- diff --git a/utcp.c b/utcp.c index 15f6374..d10c1e1 100644 --- a/utcp.c +++ b/utcp.c @@ -597,6 +597,8 @@ int utcp_recv(struct utcp *utcp, const void *data, size_t len) { if(c->state != ESTABLISHED) goto reset; + + c->snd.una = hdr.ack; break; case ESTABLISHED: case CLOSE_WAIT: