mirror of
https://github.com/lwip-tcpip/lwip.git
synced 2024-12-25 18:14:53 +00:00
altcp_tls_alloc: need to close inner conn instead of freeing it
This commit is contained in:
parent
3bd87e3815
commit
bcff67b00e
@ -70,7 +70,7 @@ altcp_tls_alloc(void *arg, u8_t ip_type)
|
||||
}
|
||||
ret = altcp_tls_new(config, inner_conn);
|
||||
if (ret == NULL) {
|
||||
altcp_free(inner_conn);
|
||||
altcp_close(inner_conn);
|
||||
}
|
||||
return ret;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user