]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
imap-old-stats-plugins: Check suser for NULL
authorAki Tuomi <aki.tuomi@dovecot.fi>
Sun, 14 Jan 2018 17:43:39 +0000 (19:43 +0200)
committerMartti Rannanjärvi <martti.rannanjarvi@dovecot.fi>
Tue, 20 Feb 2018 12:26:28 +0000 (14:26 +0200)
Satisfies static analyzers

src/plugins/imap-old-stats/imap-stats-plugin.c

index 43a9068ae4cedf10c273379a653ac01cd6a47e82..6da71a51298aa65716dda8f878a36d68d7b84510 100644 (file)
@@ -62,7 +62,7 @@ static void stats_command_post(struct client_command_context *cmd)
        string_t *str;
        buffer_t *buf;
 
-       if (scmd == NULL)
+       if (suser == NULL || scmd == NULL)
                return;
 
        new_stats = stats_alloc(pool_datastack_create());