mirror of
https://github.com/php/php-src.git
synced 2025-08-15 21:48:51 +02:00
Free RSA public key in mysqlnd sha256 auth
Not sure why this only started showing up as a leak now.
This commit is contained in:
parent
3280209c03
commit
b6a59cee47
1 changed files with 1 additions and 0 deletions
|
@ -810,6 +810,7 @@ mysqlnd_sha256_auth_get_auth_data(struct st_mysqlnd_authentication_plugin * self
|
||||||
*auth_data_len = server_public_key_len;
|
*auth_data_len = server_public_key_len;
|
||||||
ret = malloc(*auth_data_len);
|
ret = malloc(*auth_data_len);
|
||||||
RSA_public_encrypt(passwd_len + 1, (zend_uchar *) xor_str, ret, server_public_key, RSA_PKCS1_OAEP_PADDING);
|
RSA_public_encrypt(passwd_len + 1, (zend_uchar *) xor_str, ret, server_public_key, RSA_PKCS1_OAEP_PADDING);
|
||||||
|
RSA_free(server_public_key);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue