diff options
author | Stef Walter <stefw@collabora.co.uk> | 2011-03-31 10:48:13 +0200 |
---|---|---|
committer | Stef Walter <stefw@collabora.co.uk> | 2011-03-31 10:48:13 +0200 |
commit | c45d9df39035dee8a3fff610d98ac3b4c245f1dc (patch) | |
tree | 54e9061cb8d3aa43109dff57360caf503df75e29 /module | |
parent | 9985957799fd7142125f1d2dd0fae4366ec83f32 (diff) |
Fix for previous commit.
Actually use the alloc_module_unlocked() function.
Diffstat (limited to 'module')
-rw-r--r-- | module/p11-kit-lib.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/module/p11-kit-lib.c b/module/p11-kit-lib.c index 87bb6cc..80fdc77 100644 --- a/module/p11-kit-lib.c +++ b/module/p11-kit-lib.c @@ -263,7 +263,7 @@ load_module_from_config_unlocked (const char *configfile, const char *name) assert (configfile); - module = calloc (1, sizeof (Module)); + module = alloc_module_unlocked (); if (!module) return CKR_HOST_MEMORY; @@ -917,7 +917,7 @@ p11_kit_initialize_module (CK_FUNCTION_LIST_PTR funcs) module = hash_get (gl.modules, funcs); if (module == NULL) { - allocated = module = calloc (1, sizeof (Module)); + allocated = module = alloc_module_unlocked (); module->funcs = funcs; } |