From: Stef Walter Date: Mon, 30 May 2011 11:12:58 +0000 (+0200) Subject: Set the return value properly in p11_kit_load_initialize_module() X-Git-Tag: 0.1~13 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=e19300129d3fe21c9e3af1a7f95ccf3eb5315199;p=p11-kit Set the return value properly in p11_kit_load_initialize_module() --- diff --git a/p11-kit/modules.c b/p11-kit/modules.c index e155889..e2cecd9 100644 --- a/p11-kit/modules.c +++ b/p11-kit/modules.c @@ -1307,6 +1307,9 @@ p11_kit_load_initialize_module (const char *module_path, } } + if (rv == CKR_OK && module) + *module = mod->funcs; + _p11_unlock (); debug ("out: %lu", rv);