summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStef Walter <stef@thewalter.net>2014-02-13 09:57:53 +0100
committerStef Walter <stef@thewalter.net>2014-02-13 10:00:07 +0100
commitdeca4955a6cce1dd77bbd45b9524b0f7b0825169 (patch)
treebdfd92010ccf9f44ae388e3fddf43c94604762c5
parent44beedb8c2b4e30b421b604fb1b044402a1d1ff6 (diff)
proxy: Remove assertions when module is not initialized
We should return CKR_CRYPTOKI_NOT_INITIALIZED rather than assert() when proxy PKCS#11 functions are called before the module is initialized. https://bugs.freedesktop.org/show_bug.cgi?id=74919
-rw-r--r--p11-kit/proxy.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/p11-kit/proxy.c b/p11-kit/proxy.c
index 36a43a1..4e599c7 100644
--- a/p11-kit/proxy.c
+++ b/p11-kit/proxy.c
@@ -132,7 +132,6 @@ map_slot_to_real (Proxy *px,
{
CK_RV rv;
- assert (px != NULL);
assert (mapping != NULL);
p11_lock ();
@@ -158,7 +157,6 @@ map_session_to_real (Proxy *px,
CK_RV rv = CKR_OK;
Session *sess;
- assert (px != NULL);
assert (handle != NULL);
assert (mapping != NULL);