From 48be546357bb0cab849754951a233c9435f8237c Mon Sep 17 00:00:00 2001 From: goldsimon Date: Wed, 30 Jun 2010 08:33:14 +0000 Subject: [PATCH] fixed bug #30300 (shutdown parameter was not initialized in netconn_delete) --- CHANGELOG | 5 +++++ src/api/api_msg.c | 1 + 2 files changed, 6 insertions(+) diff --git a/CHANGELOG b/CHANGELOG index 52a5fbfa..b77f32fc 100644 --- a/CHANGELOG +++ b/CHANGELOG @@ -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 diff --git a/src/api/api_msg.c b/src/api/api_msg.c index 4e7c4d81..366f5d9a 100644 --- a/src/api/api_msg.c +++ b/src/api/api_msg.c @@ -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