[pkg-opensc-commit] [libp11] 21/86: Fix destroy of derived session key

Eric Dorland eric at moszumanska.debian.org
Sun Jul 24 21:40:18 UTC 2016


This is an automated email from the git hooks/post-receive script.

eric pushed a commit to branch master
in repository libp11.

commit fd4fcfdcd6c8e0084021915b8323dd186d427bba
Author: Doug Engert <deengert at gmail.com>
Date:   Tue Jan 26 08:49:26 2016 -0600

    Fix destroy of derived session key
    
    remove extra ";" and unused rv.
---
 src/p11_ops.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/p11_ops.c b/src/p11_ops.c
index 9af7b14..a59f843 100644
--- a/src/p11_ops.c
+++ b/src/p11_ops.c
@@ -133,8 +133,8 @@ int pkcs11_ecdh_derive_internal(unsigned char **out, size_t *outlen,
 err:
 	if (buf)
 	    OPENSSL_free(buf);
-	if (newkey != CK_INVALID_HANDLE && session != CK_INVALID_HANDLE);
-		rv = CRYPTOKI_call(ctx, C_DestroyObject(session, newkey));
+	if (newkey != CK_INVALID_HANDLE && session != CK_INVALID_HANDLE)
+		CRYPTOKI_call(ctx, C_DestroyObject(session, newkey));
 	
 	return ret;
 }

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-opensc/libp11.git



More information about the pkg-opensc-commit mailing list