From 0a793a9e462727f434f6283a712b37ab30df5e95 Mon Sep 17 00:00:00 2001 From: Stef Walter Date: Thu, 16 Jun 2011 18:05:22 +0100 Subject: Fix logic error loading registered modules. Thanks to Richard Bellgrim. --- p11-kit/modules.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'p11-kit') 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); -- cgit v1.1