From aecbce283db243ebfc786879e50b0da8d7006ed8 Mon Sep 17 00:00:00 2001 From: goldsimon Date: Tue, 21 Oct 2014 11:09:07 +0200 Subject: [PATCH] fixed bug #38219 Assert on TCP netconn_write with sndtimeout set --- CHANGELOG | 3 +++ src/api/api_msg.c | 1 + 2 files changed, 4 insertions(+) diff --git a/CHANGELOG b/CHANGELOG index 321c1c89..0bea06dd 100644 --- a/CHANGELOG +++ b/CHANGELOG @@ -127,6 +127,9 @@ HISTORY ++ Bugfixes: + 2014-10-21: Simon Goldschmidt + * api_msg.c: fixed bug #38219 Assert on TCP netconn_write with sndtimeout set + 2014-09-16: Kevin Cernekee * dns.c: patch #8480 Fix handling of dns_seqno wraparound diff --git a/src/api/api_msg.c b/src/api/api_msg.c index 8b92549d..2a90e93e 100644 --- a/src/api/api_msg.c +++ b/src/api/api_msg.c @@ -1266,6 +1266,7 @@ lwip_netconn_do_writemore(struct netconn *conn) /* partial write */ err = ERR_OK; conn->current_msg->msg.w.len = conn->write_offset; + conn->write_offset = 0; } } else #endif /* LWIP_SO_SNDTIMEO */