]> git.meshlink.io Git - utcp/commit
Fix garbage being sent at start of UDP connection.
authorGuus Sliepen <guus@sliepen.org>
Sat, 8 Feb 2020 14:59:41 +0000 (15:59 +0100)
committerGuus Sliepen <guus@sliepen.org>
Sat, 8 Feb 2020 14:59:41 +0000 (15:59 +0100)
commit96b97ab1291e339a36952532db8ce72e7efc45a1
treeca9f21ecf7fa65b852d87ce235bfcc4da12a6499
parent19f3f4462c52eaa766ab76ce671921f0e4dc4ebd
Fix garbage being sent at start of UDP connection.

If utcp_send() was called right after utcp_connect_ex(..., UTCP_UDP),
and the handshake phase hadn't completed yet, we left some garbage in
the send buffer which wasn't cleared until two more calls to utcp_send()
were made.
utcp.c