[pkg-opensc-commit] [libp11] 230/239: examples: removed call to ERR_remove_state()

Eric Dorland eric at moszumanska.debian.org
Sat Oct 17 06:21:37 UTC 2015


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

eric pushed a commit to branch master
in repository libp11.

commit b2ac83353e4d51115744da96fc5a5bd00b964dd2
Author: Nikos Mavrogiannopoulos <nmav at redhat.com>
Date:   Mon Oct 12 11:04:47 2015 +0200

    examples: removed call to ERR_remove_state()
    
    This was causing crashes when combined with certain openssl
    versions.
---
 examples/auth.c       | 1 -
 examples/rawrsasign.c | 1 -
 tests/fork-test.c     | 1 -
 3 files changed, 3 deletions(-)

diff --git a/examples/auth.c b/examples/auth.c
index 035a507..6e1a977 100644
--- a/examples/auth.c
+++ b/examples/auth.c
@@ -206,7 +206,6 @@ int main(int argc, char *argv[])
 
 	CRYPTO_cleanup_all_ex_data();
 	ERR_free_strings();
-	ERR_remove_state(0);
 
 	printf("authentication successfull.\n");
 	return 0;
diff --git a/examples/rawrsasign.c b/examples/rawrsasign.c
index 1e56808..74e9faf 100644
--- a/examples/rawrsasign.c
+++ b/examples/rawrsasign.c
@@ -295,7 +295,6 @@ end:
 
     CRYPTO_cleanup_all_ex_data();
     ERR_free_strings();
-    ERR_remove_state(0);
 
     return ret;
 }
diff --git a/tests/fork-test.c b/tests/fork-test.c
index c059e08..3ea22d2 100644
--- a/tests/fork-test.c
+++ b/tests/fork-test.c
@@ -202,7 +202,6 @@ int main(int argc, char *argv[])
 
 	CRYPTO_cleanup_all_ex_data();
 	ERR_free_strings();
-	ERR_remove_state(0);
 
 	printf("authentication successfull.\n");
 	return 0;

-- 
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