Count drops when the first of two pipe mallocs fails.

Obtained from:	TrustedBSD Project
This commit is contained in:
Robert Watson 2006-03-04 17:09:17 +00:00
parent 54205da01b
commit 69c89e437b

View File

@ -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;
}