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:
parent
decac7cd1e
commit
ccb3206b61
3 changed files with 3 additions and 0 deletions
|
@ -1766,6 +1766,7 @@ int tls_get_library_version(char *buf, size_t buf_len)
|
|||
void tls_connection_set_success_data(struct tls_connection *conn,
|
||||
struct wpabuf *data)
|
||||
{
|
||||
wpabuf_free(data);
|
||||
}
|
||||
|
||||
|
||||
|
|
|
@ -783,6 +783,7 @@ int tls_get_library_version(char *buf, size_t buf_len)
|
|||
void tls_connection_set_success_data(struct tls_connection *conn,
|
||||
struct wpabuf *data)
|
||||
{
|
||||
wpabuf_free(data);
|
||||
}
|
||||
|
||||
|
||||
|
|
|
@ -212,6 +212,7 @@ int tls_get_library_version(char *buf, size_t buf_len)
|
|||
void tls_connection_set_success_data(struct tls_connection *conn,
|
||||
struct wpabuf *data)
|
||||
{
|
||||
wpabuf_free(data);
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue