From: Stef Walter Date: Thu, 16 Jun 2011 17:05:22 +0000 (+0100) Subject: Fix logic error loading registered modules. X-Git-Tag: 0.2~7 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=0a793a9e462727f434f6283a712b37ab30df5e95;p=p11-kit Fix logic error loading registered modules. Thanks to Richard Bellgrim. --- 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);