fixed bug #25695: Segmentation fault in do_writemore()

This commit is contained in:
goldsimon 2009-04-18 17:48:41 +00:00
parent 04df18bcd3
commit 9d5bf57dd9
2 changed files with 5 additions and 0 deletions

View File

@ -83,6 +83,9 @@ HISTORY
++ Bugfixes:
2009-04-18 Simon Goldschmidt
* api_msg.c: fixed bug #25695: Segmentation fault in do_writemore()
2009-04-15 Simon Goldschmidt
* sockets.c: tried to fix bug #23559: lwip_recvfrom problem with tcp

View File

@ -980,6 +980,8 @@ do_writemore(struct netconn *conn)
write_finished = 1;
conn->write_msg = NULL;
conn->write_offset = 0;
/* API_EVENT might call tcp_tmr, so reset conn->state now */
conn->state = NETCONN_NONE;
}
err = tcp_output_nagle(conn->pcb.tcp);
conn->err = err;