OpenSSL: Fix memleak in previous wpabuf changes on an error path

This commit is contained in:
Jouni Malinen 2009-12-20 19:12:59 +02:00
parent 2574634b7f
commit a86a7316a4

View file

@ -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);