changeset 16012:d10572eb1f48

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 890a7ed97f6c
children 3569e84e7429
files jdk/src/share/native/sun/security/pkcs11/wrapper/p11_convert.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/jdk/src/share/native/sun/security/pkcs11/wrapper/p11_convert.c	Tue Feb 19 11:56:49 2013 -0800
+++ b/jdk/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;
     }