summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStef Walter <stefw@collabora.co.uk>2011-06-16 18:05:22 +0100
committerStef Walter <stefw@collabora.co.uk>2011-06-16 18:05:22 +0100
commit0a793a9e462727f434f6283a712b37ab30df5e95 (patch)
tree43abc5a8f291a6e56ab0d40ec13376eb1cab1a51
parentb1b62f1b0856821d046ed92be076f9b9f8c664a9 (diff)
Fix logic error loading registered modules.
Thanks to Richard Bellgrim.
-rw-r--r--p11-kit/modules.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/p11-kit/modules.c b/p11-kit/modules.c
index eae7de3..b7adf5e 100644
--- a/p11-kit/modules.c
+++ b/p11-kit/modules.c
@@ -417,7 +417,7 @@ load_registered_modules_unlocked (void)
*/
hash_iterate (configs, &hi);
while (hash_next (&hi, &key, NULL)) {
- if (!hash_steal (configs, name, (void**)&name, (void**)config))
+ if (!hash_steal (configs, key, (void**)&name, (void**)&config))
assert (0 && "not reached");
rv = take_config_and_load_module_unlocked (&name, &config);