Default to no search limit

git-svn-id: https://svn.alkaloid.net/gpl/ldap2dns/trunk@378 06cd67b6-e706-0410-b29e-9de616bca6e9
This commit is contained in:
Ben Klang
2006-10-05 21:45:15 +00:00
parent 936e65b9e3
commit 64e7e2df2b

View File

@@ -23,7 +23,7 @@
#define OUTPUT_DB 2
#define MAXHOSTS 10
#define DEF_SEARCHTIMEOUT 40
#define DEF_RECLIMIT 5000
#define DEF_RECLIMIT LDAP_NO_LIMIT
static char tinydns_textfile[256];
static char tinydns_texttemp[256];
@@ -195,7 +195,6 @@ static void parse_hosts(char* buf)
options.useduris = 0;
for (i = 0; i<MAXHOSTS; i++) {
if (!strncasecmp(buf, "ldaps://", 8) || !strncasecmp(buf, "ldap://", 7)) {
// LDAP-URI is given/found, at the moment only the standard-ports 389 and 636 are supported
if (!strncasecmp(buf, "ldap://", 7))
options.use_tls[i] = 1;
if ((k = sscanf(buf, "%128s %512[A-Za-z0-9 .:/_+-]", value, rest))>=1) {