forked from espressif/esp-idf
Fix tls_connection_set_success_data() in TLS library wrappers
Some of the TLS library wrappers defined only an empty function for tls_connection_set_success_data(). That could result in memory leaks in TLS server cases, so update these to do the minimal thing and free the provided buffer as unused. Signed-off-by: Jouni Malinen <quic_jouni@quicinc.com>
This commit is contained in:
committed by
Sarvesh Bodakhe
parent
6658c3ed63
commit
8ff4837830
@@ -784,6 +784,7 @@ int tls_get_library_version(char *buf, size_t buf_len)
|
|||||||
void tls_connection_set_success_data(struct tls_connection *conn,
|
void tls_connection_set_success_data(struct tls_connection *conn,
|
||||||
struct wpabuf *data)
|
struct wpabuf *data)
|
||||||
{
|
{
|
||||||
|
wpabuf_free(data);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user