summaryrefslogtreecommitdiffstats
path: root/sys/security
diff options
context:
space:
mode:
authorrwatson <rwatson@FreeBSD.org>2006-03-04 17:09:17 +0000
committerrwatson <rwatson@FreeBSD.org>2006-03-04 17:09:17 +0000
commitfb6445828eb4dfb0e30d347b7096d80645134469 (patch)
treef8dafd661ce7c3b0a80ad0f9167ddb8a2902c58a /sys/security
parent20bce94704e0ebbe8a06db8b6df5fc462f8b28b3 (diff)
downloadFreeBSD-src-fb6445828eb4dfb0e30d347b7096d80645134469.zip
FreeBSD-src-fb6445828eb4dfb0e30d347b7096d80645134469.tar.gz
Count drops when the first of two pipe mallocs fails.
Obtained from: TrustedBSD Project
Diffstat (limited to 'sys/security')
-rw-r--r--sys/security/audit/audit_pipe.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/sys/security/audit/audit_pipe.c b/sys/security/audit/audit_pipe.c
index 0ce6060..73da682 100644
--- a/sys/security/audit/audit_pipe.c
+++ b/sys/security/audit/audit_pipe.c
@@ -180,6 +180,7 @@ audit_pipe_append(struct audit_pipe *ap, void *record, u_int record_len)
ape = malloc(sizeof(*ape), M_AUDIT_PIPE_ENTRY, M_NOWAIT | M_ZERO);
if (ape == NULL) {
ap->ap_drops++;
+ audit_pipe_drops++;
return;
}
OpenPOWER on IntegriCloud