mirror of
https://github.com/lwip-tcpip/lwip.git
synced 2025-01-27 21:35:48 +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);
|
ret = altcp_tls_new(config, inner_conn);
|
||||||
if (ret == NULL) {
|
if (ret == NULL) {
|
||||||
altcp_free(inner_conn);
|
altcp_close(inner_conn);
|
||||||
}
|
}
|
||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user