2
0
mirror of https://gitlab.com/apparmor/apparmor synced 2025-08-29 05:17:59 +00:00

properly set return code for changehat interface

This commit is contained in:
John Johansen 2006-08-30 00:33:36 +00:00
parent 7b15ddcef5
commit b6430e3f83

View File

@ -159,6 +159,7 @@ int aa_setprocattr_changehat(char *hatinfo, size_t infosize)
error = aa_change_hat(hat, magic);
spin_unlock_irqrestore(&sd_lock, flags);
error = 0;
out:
if (token) {
memset(token, 0, infosize);