Skip to content

Commit

Permalink
apparmor: Ensure auser is not 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 fc4557f commit 86c9455
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/plugins/apparmor/apparmor-plugin.c
Expand Up @@ -49,6 +49,7 @@ static void apparmor_mail_user_deinit(struct mail_user *user)
{
struct apparmor_mail_user *auser = APPARMOR_USER_CONTEXT(user);

i_assert(auser != NULL);
auser->module_ctx.super.deinit(user);

if (aa_change_hat(NULL, auser->token)<0)
Expand Down

0 comments on commit 86c9455

Please sign in to comment.