mirror of
https://github.com/apache/httpd.git
synced 2025-08-08 15:02:10 +03:00
change all the negative values for LDAPConnPoolTTL into
-2 (AP_LDAP_CONNPOOL_INFINITE), so we can't get confused over -1 (AP_LDAP_CONNPOOL_DEFAULT) being merged. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1081146 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
@@ -2586,6 +2586,10 @@ static const char *util_ldap_set_conn_ttl(cmd_parms *cmd,
|
|||||||
return "LDAPConnPoolTTL has wrong format";
|
return "LDAPConnPoolTTL has wrong format";
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (timeout < 0) {
|
||||||
|
/* reserve -1 for default value */
|
||||||
|
timeout = AP_LDAP_CONNPOOL_INFINITE;
|
||||||
|
}
|
||||||
st->connectionPoolTTL = timeout;
|
st->connectionPoolTTL = timeout;
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user