mirror of
https://github.com/lwip-tcpip/lwip.git
synced 2024-10-05 22:29:49 +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)
|
do_connect(struct api_msg_msg *msg)
|
||||||
{
|
{
|
||||||
if (msg->conn->pcb.tcp == NULL) {
|
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);
|
sys_sem_signal(msg->conn->op_completed);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user