Skip to content

Commit

Permalink
mail-crypt: Contexts are now required or checked
Browse files Browse the repository at this point in the history
Satisfies static analyzers
  • Loading branch information
cmouse authored and mrannanj committed Feb 20, 2018
1 parent 4efb529 commit 19b6330
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/plugins/mail-crypt/mail-crypt-acl-plugin.c
Expand Up @@ -17,7 +17,7 @@
#include "mail-crypt-plugin.h"

#define MAIL_CRYPT_ACL_LIST_CONTEXT(obj) \
MODULE_CONTEXT(obj, mail_crypt_acl_mailbox_list_module)
MODULE_CONTEXT_REQUIRE(obj, mail_crypt_acl_mailbox_list_module)

struct mail_crypt_acl_mailbox_list {
union mailbox_list_module_context module_ctx;
Expand Down
4 changes: 2 additions & 2 deletions src/plugins/mail-crypt/mail-crypt-plugin.c
Expand Up @@ -34,9 +34,9 @@ struct mail_crypt_mailbox {
const char *mail_crypt_plugin_version = DOVECOT_ABI_VERSION;

#define MAIL_CRYPT_MAIL_CONTEXT(obj) \
MODULE_CONTEXT(obj, mail_crypt_mail_module)
MODULE_CONTEXT_REQUIRE(obj, mail_crypt_mail_module)
#define MAIL_CRYPT_CONTEXT(obj) \
MODULE_CONTEXT(obj, mail_crypt_storage_module)
MODULE_CONTEXT_REQUIRE(obj, mail_crypt_storage_module)
#define MAIL_CRYPT_USER_CONTEXT(obj) \
MODULE_CONTEXT(obj, mail_crypt_user_module)

Expand Down

0 comments on commit 19b6330

Please sign in to comment.