summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--p11-kit/modules.c3
1 files changed, 3 insertions, 0 deletions
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);