[daemon] Fix uninitialized PKCS#11 function pointer.
authorStef Walter <stef@memberwebs.com>
Sun, 11 Jul 2010 23:30:30 +0000 (23:30 +0000)
committerStef Walter <stef@memberwebs.com>
Sun, 11 Jul 2010 23:30:30 +0000 (23:30 +0000)
gp11/gp11-module.c

index 7255724..4ead3f8 100644 (file)
@@ -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);
 }