From: Teemu Huovila Date: Tue, 14 Jun 2016 19:42:09 +0000 (+0300) Subject: lib-dcrypt: Fix error_r pointer verification. X-Git-Tag: 2.3.0.rc1~3494 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=d86910a95633a25cf7577ea2dff0472b5a489bc3;p=thirdparty%2Fdovecot%2Fcore.git lib-dcrypt: Fix error_r pointer verification. --- diff --git a/src/lib-dcrypt/dcrypt.c b/src/lib-dcrypt/dcrypt.c index e8b2d00bfe..4312848cdb 100644 --- a/src/lib-dcrypt/dcrypt.c +++ b/src/lib-dcrypt/dcrypt.c @@ -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; }