changeset 7898:267bca6af07e

8008107: [parfait] Use after free of pointer in jdk/src/share/native/sun/security/pkcs11/wrapper/p11_convert.c Reviewed-by: mullan, chegar
author jzavgren
date Tue, 19 Feb 2013 15:31:19 -0500
parents 16efb7ba188f
children ec1a79c3a99c
files src/share/native/sun/security/pkcs11/wrapper/p11_convert.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/share/native/sun/security/pkcs11/wrapper/p11_convert.c	Tue Feb 19 11:56:49 2013 -0800
+++ b/src/share/native/sun/security/pkcs11/wrapper/p11_convert.c	Tue Feb 19 15:31:19 2013 -0500
@@ -687,8 +687,8 @@
     if ((*env)->ExceptionCheck(env)) {
         free(ckParam.RandomInfo.pClientRandom);
         free(ckParam.RandomInfo.pServerRandom);
+        free(ckParam.pReturnedKeyMaterial->pIVClient);
         free(ckParam.pReturnedKeyMaterial);
-        free(ckParam.pReturnedKeyMaterial->pIVClient);
         return ckParam;
     }