diff options
Diffstat (limited to 'sys/kern/sysv_ipc.c')
-rw-r--r-- | sys/kern/sysv_ipc.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/sys/kern/sysv_ipc.c b/sys/kern/sysv_ipc.c index 4a006ad..581043c 100644 --- a/sys/kern/sysv_ipc.c +++ b/sys/kern/sysv_ipc.c @@ -51,8 +51,10 @@ ipcperm(p, perm, mode) int mode; { struct ucred *cred = p->p_ucred; + int error; - if (suser(p)) + error = suser(p); + if (!error) return (0); /* Check for user match. */ |