Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 22 Jul 2012 10:18:23 GMT
From:      Robert Watson <rwatson@FreeBSD.org>
To:        Perforce Change Reviews <perforce@freebsd.org>
Subject:   PERFORCE change 214734 for review
Message-ID:  <201207221018.q6MAINlg054905@skunkworks.freebsd.org>

next in thread | raw e-mail | index | archive | help
http://p4web.freebsd.org/@@214734?ac=10

Change 214734 by rwatson@rwatson_cinnamon on 2012/07/22 10:17:39

	Avoid a directory descriptor leak in libauditd when iterating over
	possible audit trail directories when the first one fills.
	
	Submitted by:   guido

Affected files ...

.. //depot/projects/trustedbsd/openbsm/libauditd/auditd_lib.c#17 edit

Differences ...

==== //depot/projects/trustedbsd/openbsm/libauditd/auditd_lib.c#17 (text+ko) ====

@@ -26,7 +26,7 @@
  * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
  * POSSIBILITY OF SUCH DAMAGE.
  *
- * $P4: //depot/projects/trustedbsd/openbsm/libauditd/auditd_lib.c#16 $
+ * $P4: //depot/projects/trustedbsd/openbsm/libauditd/auditd_lib.c#17 $
  */
 
 #include <sys/param.h>
@@ -520,6 +520,7 @@
 				}
 
 		}
+		closedir(dirp);
 	}
 
 	oldest_time = current_time - expire_age;



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201207221018.q6MAINlg054905>