diff options
| author | Andriy Gapon <avg@FreeBSD.org> | 2018-07-23 16:56:49 +0000 |
|---|---|---|
| committer | Andriy Gapon <avg@FreeBSD.org> | 2018-07-23 16:56:49 +0000 |
| commit | dc8240f0da053a368dba65e1e4f9ee0b6bd5fa3f (patch) | |
| tree | 026e4338b2bc3ad32dd90117972878cceaadbecc /sys/security | |
| parent | a9e8c5c4b08ca673aef48cc10b45abc70c1033e0 (diff) | |
Notes
Diffstat (limited to 'sys/security')
| -rw-r--r-- | sys/security/audit/audit_pipe.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/security/audit/audit_pipe.c b/sys/security/audit/audit_pipe.c index b53cfaade29d..b8a94805b6bf 100644 --- a/sys/security/audit/audit_pipe.c +++ b/sys/security/audit/audit_pipe.c @@ -756,7 +756,7 @@ audit_pipe_ioctl(struct cdev *dev, u_long cmd, caddr_t data, int flag, case AUDITPIPE_SET_QLIMIT: /* Lockless integer write. */ - if (*(u_int *)data >= AUDIT_PIPE_QLIMIT_MIN || + if (*(u_int *)data >= AUDIT_PIPE_QLIMIT_MIN && *(u_int *)data <= AUDIT_PIPE_QLIMIT_MAX) { ap->ap_qlimit = *(u_int *)data; error = 0; |
