diff options
author | rwatson <rwatson@FreeBSD.org> | 2006-03-04 17:09:17 +0000 |
---|---|---|
committer | rwatson <rwatson@FreeBSD.org> | 2006-03-04 17:09:17 +0000 |
commit | fb6445828eb4dfb0e30d347b7096d80645134469 (patch) | |
tree | f8dafd661ce7c3b0a80ad0f9167ddb8a2902c58a | |
parent | 20bce94704e0ebbe8a06db8b6df5fc462f8b28b3 (diff) | |
download | FreeBSD-src-fb6445828eb4dfb0e30d347b7096d80645134469.zip FreeBSD-src-fb6445828eb4dfb0e30d347b7096d80645134469.tar.gz |
Count drops when the first of two pipe mallocs fails.
Obtained from: TrustedBSD Project
-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 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; } |