]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
lib-dcrypt: Fix error_r pointer verification.
authorTeemu Huovila <teemu.huovila@dovecot.fi>
Tue, 14 Jun 2016 19:42:09 +0000 (22:42 +0300)
committerTeemu Huovila <teemu.huovila@dovecot.fi>
Tue, 14 Jun 2016 19:42:09 +0000 (22:42 +0300)
src/lib-dcrypt/dcrypt.c

index e8b2d00bfe03d2d03915cdad68d82378b5e71271..4312848cdb261fea8e67485f85850f404d9a6c66 100644 (file)
@@ -22,12 +22,12 @@ bool dcrypt_initialize(const char *backend, const char **error_r)
        mod_set.require_init_funcs = 1;
        dcrypt_module = module_dir_load(DCRYPT_MODULE_DIR, implementation, &mod_set);
        if (dcrypt_module == NULL) {
-               if (*error_r != NULL)
+               if (error_r != NULL)
                        *error_r = "No such module";
                return FALSE;
        }
        if (dcrypt_module->init == NULL) {
-               if (*error_r != NULL)
+               if (error_r != NULL)
                        *error_r = "Module missing init/deinit";
                return FALSE;
        }