OSEC

Neohapsis is currently accepting applications for employment. For more information, please visit our website www.neohapsis.com or email hr@neohapsis.com
CVS: cvs.openbsd.org: src

From: Jonathan Matthew (jmatthewcvs.openbsd.org)
Date: Fri Jun 15 2012 - 19:08:32 CDT


CVSROOT: /cvs
Module name: src
Changes by: jmatthewcvs.openbsd.org 2012/06/15 18:08:32

Modified files:
        usr.sbin/ldapd : conn.c control.c imsgev.c imsgev.h ldapd.c
                         ldapd.h ldape.c namespace.c util.c

Log message:
Protect against fd exhaustion when reopening database files. Only accept
client or control connections when there are at least 8 fds available,
and close a connection before calling imsg_read if it would be unable to
accept an fd from the parent process.

ok gilles