NULL check was after dereference here, found by Coverity.
int fs_crypt_load_keys(struct crypt_fs *fs, const char **error_r)
{
struct mailbox_list *list = mailbox_list_fs_get_list(&fs->fs);
- struct mail_namespace *ns = mailbox_list_get_namespace(list);
const char *error;
if (fs->keys_loaded)
return -1;
}
+ struct mail_namespace *ns = mailbox_list_get_namespace(list);
if (null_strcmp(mail_user_plugin_getenv(ns->user, "mail_crypt_save_version"), "0") == 0)
fs->allow_missing_keys = TRUE;
if (mail_crypt_global_keys_load(ns->user,