Skip to content

Commit

Permalink
imap-old-stats-plugins: Check suser for NULL
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 42f95f6 commit 6b49867
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/plugins/imap-old-stats/imap-stats-plugin.c
Expand Up @@ -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());
Expand Down

0 comments on commit 6b49867

Please sign in to comment.