Skip to content

Commit

Permalink
doveadm-sieve-sync: Require sieve context
Browse files Browse the repository at this point in the history
  • Loading branch information
cmouse authored and stephanbosch committed Feb 14, 2018
1 parent 36418e0 commit 973963e
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/plugins/doveadm-sieve/doveadm-sieve-sync.c
Expand Up @@ -16,9 +16,9 @@
#include "doveadm-sieve-plugin.h"

#define SIEVE_MAIL_CONTEXT(obj) \
MODULE_CONTEXT(obj, sieve_storage_module)
MODULE_CONTEXT_REQUIRE(obj, sieve_storage_module)
#define SIEVE_USER_CONTEXT(obj) \
MODULE_CONTEXT(obj, sieve_user_module)
MODULE_CONTEXT_REQUIRE(obj, sieve_user_module)

struct sieve_mail_user {
union mail_user_module_context module_ctx;
Expand Down Expand Up @@ -79,8 +79,6 @@ mail_sieve_user_init
SIEVE_STORAGE_FLAG_SYNCHRONIZING;
struct sieve_environment svenv;

i_assert( suser != NULL );

if ( suser->svinst != NULL ) {
*svstorage_r = suser->sieve_storage;
return suser->sieve_storage != NULL ? 1 : 0;
Expand Down

0 comments on commit 973963e

Please sign in to comment.