[gnome-keyring] [daemon] Fix uninitialized PKCS#11 function pointer.
- From: Stefan Walter <stefw src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-keyring] [daemon] Fix uninitialized PKCS#11 function pointer.
- Date: Sun, 11 Jul 2010 23:31:05 +0000 (UTC)
commit bfbec0de8bc4e55f3aa7a4a5a4b847b061b1e4ec
Author: Stef Walter <stef memberwebs com>
Date: Sun Jul 11 23:30:30 2010 +0000
[daemon] Fix uninitialized PKCS#11 function pointer.
daemon/gkd-pkcs11.c | 1 +
gp11/gp11-module.c | 1 +
2 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/daemon/gkd-pkcs11.c b/daemon/gkd-pkcs11.c
index a5c9cc7..354de7e 100644
--- a/daemon/gkd-pkcs11.c
+++ b/daemon/gkd-pkcs11.c
@@ -94,6 +94,7 @@ gkd_pkcs11_initialize (void)
gkm_wrap_layer_add_module (user_store);
pkcs11_roof = gkm_wrap_layer_get_functions ();
+ pkcs11_base = gkm_wrap_layer_get_functions_no_prompts ();
memset (&init_args, 0, sizeof (init_args));
init_args.flags = CKF_OS_LOCKING_OK;
diff --git a/gp11/gp11-module.c b/gp11/gp11-module.c
index da855dd..1a865c0 100644
--- a/gp11/gp11-module.c
+++ b/gp11/gp11-module.c
@@ -771,6 +771,7 @@ gp11_module_initialize (const gchar *path, gpointer reserved, GError **err)
GP11Module*
gp11_module_new (CK_FUNCTION_LIST_PTR funcs)
{
+ g_return_val_if_fail (funcs, NULL);
return g_object_new (GP11_TYPE_MODULE, "functions", funcs, NULL);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]