Fix mistaken use of CRYPTO_EX_INDEX_DSA in rsa.c.

Change-Id: I4a81fcbdd79f96b34cafcbd33279906b55dafbac
Reviewed-on: https://boringssl-review.googlesource.com/3920
Reviewed-by: Adam Langley <agl@google.com>
This commit is contained in:
Brian Smith 2015-03-13 02:26:34 +08:00 committed by Adam Langley
parent dc3da93899
commit 28120a18f6

View File

@ -125,7 +125,7 @@ void RSA_free(RSA *rsa) {
}
METHOD_unref(rsa->meth);
CRYPTO_free_ex_data(CRYPTO_EX_INDEX_DSA, rsa, &rsa->ex_data);
CRYPTO_free_ex_data(CRYPTO_EX_INDEX_RSA, rsa, &rsa->ex_data);
if (rsa->n != NULL) {
BN_clear_free(rsa->n);