diff options
author | rwatson <rwatson@FreeBSD.org> | 2006-02-07 14:46:26 +0000 |
---|---|---|
committer | rwatson <rwatson@FreeBSD.org> | 2006-02-07 14:46:26 +0000 |
commit | bc3d3926ef2ba7595bd71c323425129ce8441dea (patch) | |
tree | 1906597a0207c49bfb8d01cc7ff4b39c21b39675 /sys/security/audit | |
parent | 9d8e1ccdf8fbb53000da6fe07f88832802fc6fca (diff) | |
download | FreeBSD-src-bc3d3926ef2ba7595bd71c323425129ce8441dea.zip FreeBSD-src-bc3d3926ef2ba7595bd71c323425129ce8441dea.tar.gz |
Fix queue drop logic when the queue overflows: decrement queue length.
Obtained from: TrustedBSD Project
Diffstat (limited to 'sys/security/audit')
-rw-r--r-- | sys/security/audit/audit_pipe.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/sys/security/audit/audit_pipe.c b/sys/security/audit/audit_pipe.c index 25c6a7e..0ce6060 100644 --- a/sys/security/audit/audit_pipe.c +++ b/sys/security/audit/audit_pipe.c @@ -198,6 +198,7 @@ audit_pipe_append(struct audit_pipe *ap, void *record, u_int record_len) ape_remove = TAILQ_FIRST(&ap->ap_queue); TAILQ_REMOVE(&ap->ap_queue, ape_remove, ape_queue); audit_pipe_entry_free(ape_remove); + ap->ap_qlen--; ap->ap_drops++; audit_pipe_drops++; } |