mirror of
https://github.com/lwip-tcpip/lwip.git
synced 2025-01-01 12:00:53 +00:00
do_connect(): set conn->err to an error if conn->pcb is NULL
This commit is contained in:
parent
9521f54741
commit
97f797e859
@ -836,6 +836,8 @@ void
|
||||
do_connect(struct api_msg_msg *msg)
|
||||
{
|
||||
if (msg->conn->pcb.tcp == NULL) {
|
||||
/* This may happen when calling netconn_connect() a second time */
|
||||
msg->conn->err = ERR_CLSD;
|
||||
sys_sem_signal(msg->conn->op_completed);
|
||||
return;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user