From deca4955a6cce1dd77bbd45b9524b0f7b0825169 Mon Sep 17 00:00:00 2001 From: Stef Walter Date: Thu, 13 Feb 2014 09:57:53 +0100 Subject: 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 --- p11-kit/proxy.c | 2 -- 1 file changed, 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); -- cgit v1.1