summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStef Walter <stefw@collabora.co.uk>2011-05-30 13:12:58 +0200
committerStef Walter <stefw@collabora.co.uk>2011-05-30 13:12:58 +0200
commite19300129d3fe21c9e3af1a7f95ccf3eb5315199 (patch)
treeb1a6a8ca7db9f2a8a3be76378b083f4dfb16ebf3
parentb3b68fcb1d3fc4958acc6f6528fb88e7c87b7512 (diff)
Set the return value properly in p11_kit_load_initialize_module()
-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);