From owner-p4-projects@FreeBSD.ORG Tue Feb 7 18:36:00 2006 Return-Path: X-Original-To: p4-projects@freebsd.org Delivered-To: p4-projects@freebsd.org Received: by hub.freebsd.org (Postfix, from userid 32767) id 3359516A424; Tue, 7 Feb 2006 18:36:00 +0000 (GMT) X-Original-To: perforce@freebsd.org Delivered-To: perforce@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id E5FCD16A422 for ; Tue, 7 Feb 2006 18:35:59 +0000 (GMT) (envelope-from bb+lists.freebsd.perforce@cyrus.watson.org) Received: from repoman.freebsd.org (repoman.freebsd.org [216.136.204.115]) by mx1.FreeBSD.org (Postfix) with ESMTP id AC3DD43D66 for ; Tue, 7 Feb 2006 18:35:59 +0000 (GMT) (envelope-from bb+lists.freebsd.perforce@cyrus.watson.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.13.1/8.13.1) with ESMTP id k17IZxws098892 for ; Tue, 7 Feb 2006 18:35:59 GMT (envelope-from bb+lists.freebsd.perforce@cyrus.watson.org) Received: (from perforce@localhost) by repoman.freebsd.org (8.13.1/8.13.1/Submit) id k17IZx6l098889 for perforce@freebsd.org; Tue, 7 Feb 2006 18:35:59 GMT (envelope-from bb+lists.freebsd.perforce@cyrus.watson.org) Date: Tue, 7 Feb 2006 18:35:59 GMT Message-Id: <200602071835.k17IZx6l098889@repoman.freebsd.org> X-Authentication-Warning: repoman.freebsd.org: perforce set sender to bb+lists.freebsd.perforce@cyrus.watson.org using -f From: Robert Watson To: Perforce Change Reviews Cc: Subject: PERFORCE change 91328 for review X-BeenThere: p4-projects@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: p4 projects tree changes List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 07 Feb 2006 18:36:01 -0000 http://perforce.freebsd.org/chv.cgi?CH=91328 Change 91328 by rwatson@rwatson_zoo on 2006/02/07 18:35:56 When queue overflows and a record is removed, remember to update the queue length. Affected files ... .. //depot/projects/trustedbsd/audit3/sys/security/audit/audit_pipe.c#7 edit Differences ... ==== //depot/projects/trustedbsd/audit3/sys/security/audit/audit_pipe.c#7 (text+ko) ==== @@ -198,6 +198,7 @@ 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++; }