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>
void tls_connection_set_success_data(struct tls_connection *conn,
struct wpabuf *data)
{
+ wpabuf_free(data);
}
void tls_connection_set_success_data(struct tls_connection *conn,
struct wpabuf *data)
{
+ wpabuf_free(data);
}
void tls_connection_set_success_data(struct tls_connection *conn,
struct wpabuf *data)
{
+ wpabuf_free(data);
}