mirror of
https://github.com/vanhoefm/fragattacks.git
synced 2025-01-18 02:44:03 -05:00
OpenSSL: Fix memory leak on error path
If SSL_CTX_new(SSLv23_method()) fails, tls_init() error path did not free the allocated struct tls_data instance. Signed-off-by: Jouni Malinen <jouni@qca.qualcomm.com>
This commit is contained in:
parent
b907491281
commit
1f1e599b3b
@ -941,6 +941,7 @@ void * tls_init(const struct tls_config *conf)
|
||||
os_free(tls_global);
|
||||
tls_global = NULL;
|
||||
}
|
||||
os_free(data);
|
||||
return NULL;
|
||||
}
|
||||
data->ssl = ssl;
|
||||
|
Loading…
Reference in New Issue
Block a user