From 8a7c1c49262568b0fe37a254bcad76d86ee6276e Mon Sep 17 00:00:00 2001 From: goldsimon Date: Sun, 30 Aug 2009 20:24:08 +0000 Subject: [PATCH] do_connect: LWIP_ERROR on invalid/disabled protocol --- src/api/api_msg.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/api/api_msg.c b/src/api/api_msg.c index 28d10101..ab4a9beb 100644 --- a/src/api/api_msg.c +++ b/src/api/api_msg.c @@ -807,6 +807,8 @@ do_connect(struct api_msg_msg *msg) break; #endif /* LWIP_TCP */ default: + LWIP_ERROR("Invalid netconn type", 0, do{ msg->conn->err = ERR_VAL; + sys_sem_signal(msg->conn->op_completed); }while(0)); break; } }