mirror of
https://github.com/opnsense/src.git
synced 2026-05-28 04:12:45 -04:00
fix incorrect operator in the AUDITPIPE_SET_QLIMIT bounds check
PR: 229983 Submitted by: Aniket Pandey <aniketp@iitk.ac.in> Reported by: Aniket Pandey <aniketp@iitk.ac.in> MFC after: 1 week
This commit is contained in:
parent
a9e8c5c4b0
commit
dc8240f0da
1 changed files with 1 additions and 1 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in a new issue