diff --git a/modules/ldap/util_ldap.c b/modules/ldap/util_ldap.c index 7c55bc5b5e..dc8291b97c 100644 --- a/modules/ldap/util_ldap.c +++ b/modules/ldap/util_ldap.c @@ -2586,6 +2586,10 @@ static const char *util_ldap_set_conn_ttl(cmd_parms *cmd, return "LDAPConnPoolTTL has wrong format"; } + if (timeout < 0) { + /* reserve -1 for default value */ + timeout = AP_LDAP_CONNPOOL_INFINITE; + } st->connectionPoolTTL = timeout; return NULL; }