From: Stef Walter Date: Thu, 13 Feb 2014 08:57:53 +0000 (+0100) Subject: proxy: Remove assertions when module is not initialized X-Git-Tag: 0.20.3~10 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=deca4955a6cce1dd77bbd45b9524b0f7b0825169;p=p11-kit 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 --- 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);