fixed bug #30300 (shutdown parameter was not initialized in netconn_delete)

This commit is contained in:
goldsimon 2010-06-30 08:33:14 +00:00
parent 0f74a57267
commit 48be546357
2 changed files with 6 additions and 0 deletions

View File

@ -224,6 +224,11 @@ HISTORY
++ Bugfixes:
2010-06-30: Simon Goldschmidt
* api_msg.c: fixed bug #30300 (shutdown parameter was not initialized in
netconn_delete)
2010-06-28: Kieran Mansley
* timers.c remove unportable printing of C function pointers

View File

@ -845,6 +845,7 @@ do_delconn(struct api_msg_msg *msg)
LWIP_ASSERT("already writing or closing", msg->conn->current_msg == NULL &&
msg->conn->write_offset == 0);
msg->conn->state = NETCONN_CLOSE;
msg->msg.sd.shut = NETCONN_SHUT_RDWR;
msg->conn->current_msg = msg;
do_close_internal(msg->conn);
/* API_EVENT is called inside do_close_internal, before releasing