Merge branch 'PHP-7.4'

* PHP-7.4:
  Free RSA public key in mysqlnd sha256 auth
This commit is contained in:
Nikita Popov 2019-12-11 10:32:06 +01:00
commit e2a1dbd502

View file

@ -808,6 +808,7 @@ mysqlnd_sha256_auth_get_auth_data(struct st_mysqlnd_authentication_plugin * self
*auth_data_len = server_public_key_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_free(server_public_key);
}
}