OpenSSL: Fix memleak in previous wpabuf changes on an error path
This commit is contained in:
parent
2574634b7f
commit
a86a7316a4
1 changed files with 1 additions and 0 deletions
|
@ -2207,6 +2207,7 @@ struct wpabuf * tls_connection_decrypt(void *tls_ctx,
|
|||
if (res < 0) {
|
||||
tls_show_errors(MSG_INFO, __func__,
|
||||
"Decryption failed - SSL_read");
|
||||
wpabuf_free(buf);
|
||||
return NULL;
|
||||
}
|
||||
wpabuf_put(buf, res);
|
||||
|
|
Loading…
Reference in a new issue