Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
James Lowden
OpenLDAP
Commits
c6c4aaa1
Commit
c6c4aaa1
authored
Nov 06, 1998
by
Kurt Zeilenga
Browse files
merge in passwd backend search sizelimit bugfix from -devel
parent
c0a303ba
Changes
1
Hide whitespace changes
Inline
Side-by-side
servers/slapd/back-passwd/search.c
View file @
c6c4aaa1
...
@@ -80,14 +80,6 @@ passwd_back_search(
...
@@ -80,14 +80,6 @@ passwd_back_search(
}
}
pthread_mutex_unlock
(
&
op
->
o_abandonmutex
);
pthread_mutex_unlock
(
&
op
->
o_abandonmutex
);
/* check size limit */
if
(
--
slimit
==
-
1
)
{
send_ldap_result
(
conn
,
op
,
LDAP_SIZELIMIT_EXCEEDED
,
NULL
,
NULL
);
endpwent
();
return
(
0
);
}
/* check time limit */
/* check time limit */
pthread_mutex_lock
(
&
currenttime_mutex
);
pthread_mutex_lock
(
&
currenttime_mutex
);
time
(
&
currenttime
);
time
(
&
currenttime
);
...
@@ -103,6 +95,14 @@ passwd_back_search(
...
@@ -103,6 +95,14 @@ passwd_back_search(
e
=
pw2entry
(
be
,
pw
);
e
=
pw2entry
(
be
,
pw
);
if
(
test_filter
(
be
,
conn
,
op
,
e
,
filter
)
==
0
)
{
if
(
test_filter
(
be
,
conn
,
op
,
e
,
filter
)
==
0
)
{
/* check size limit */
if
(
--
slimit
==
-
1
)
{
send_ldap_result
(
conn
,
op
,
LDAP_SIZELIMIT_EXCEEDED
,
NULL
,
NULL
);
endpwent
();
return
(
0
);
}
send_search_entry
(
be
,
conn
,
op
,
e
,
attrs
,
attrsonly
);
send_search_entry
(
be
,
conn
,
op
,
e
,
attrs
,
attrsonly
);
}
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment