]> granicus.if.org Git - p11-kit/commitdiff
Fix logic error loading registered modules.
authorStef Walter <stefw@collabora.co.uk>
Thu, 16 Jun 2011 17:05:22 +0000 (18:05 +0100)
committerStef Walter <stefw@collabora.co.uk>
Thu, 16 Jun 2011 17:05:22 +0000 (18:05 +0100)
Thanks to Richard Bellgrim.

p11-kit/modules.c

index eae7de3d007b5826b466397eb419dd0b5dd37289..b7adf5e9050fe6cc75ccba1303acd83b32b87755 100644 (file)
@@ -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);