]> granicus.if.org Git - p11-kit/commitdiff
Don't fail when duplicate modules are configured.
authorStef Walter <stefw@collabora.co.uk>
Wed, 3 Aug 2011 09:37:40 +0000 (11:37 +0200)
committerStef Walter <stefw@collabora.co.uk>
Wed, 3 Aug 2011 09:37:40 +0000 (11:37 +0200)
 * Duplicate modules may be caused by editor backups, misconfigurations
   or a multitude of other sources. Failing dead is a bit harsh.
 * After discussing gnutls needs with Nikos

p11-kit/modules.c

index f068510637a980b4369652d8300e29d97b5186de..9771e6b227459da6f5ce95b9df0608156e817ad2 100644 (file)
@@ -361,7 +361,7 @@ take_config_and_load_module_unlocked (char **name, hashmap **config)
        if (prev) {
                _p11_message ("duplicate configured module: %s: %s", mod->name, path);
                free_module_unlocked (mod);
-               return CKR_GENERAL_ERROR;
+               return CKR_OK;
        }
 
        /*