Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
orbea -
OpenLDAP
Commits
0f18e6ce
Commit
0f18e6ce
authored
Feb 19, 2005
by
Pierangelo Masarati
Browse files
fix ITS#3551
parent
94b3f430
Changes
1
Hide whitespace changes
Inline
Side-by-side
servers/slapd/back-sql/search.c
View file @
0f18e6ce
...
...
@@ -1983,10 +1983,7 @@ backsql_search( Operation *op, SlapReply *rs )
rs
->
sr_err
=
LDAP_TIMELIMIT_EXCEEDED
;
rs
->
sr_ctrls
=
NULL
;
rs
->
sr_ref
=
rs
->
sr_v2ref
;
rs
->
sr_err
=
(
rs
->
sr_v2ref
==
NULL
)
?
LDAP_SUCCESS
:
LDAP_REFERRAL
;
send_ldap_result
(
op
,
rs
);
goto
end_of_search
;
goto
send_results
;
}
#ifdef BACKSQL_ARBITRARY_KEY
...
...
@@ -2217,17 +2214,11 @@ next_entry2:;
&&
rs
->
sr_nentries
>=
op
->
ors_slimit
)
{
rs
->
sr_err
=
LDAP_SIZELIMIT_EXCEEDED
;
send_ldap_result
(
op
,
rs
);
goto
end_of_search
;
goto
send_results
;
}
}
end_of_search:
;
entry_clean
(
&
base_entry
);
/* in case we got here accidentally */
entry_clean
(
&
user_entry
);
if
(
rs
->
sr_nentries
>
0
)
{
rs
->
sr_ref
=
rs
->
sr_v2ref
;
rs
->
sr_err
=
(
rs
->
sr_v2ref
==
NULL
)
?
LDAP_SUCCESS
...
...
@@ -2236,8 +2227,15 @@ end_of_search:;
}
else
{
rs
->
sr_err
=
bsi
.
bsi_status
;
}
send_results:
;
send_ldap_result
(
op
,
rs
);
entry_clean
(
&
base_entry
);
/* in case we got here accidentally */
entry_clean
(
&
user_entry
);
if
(
rs
->
sr_v2ref
)
{
ber_bvarray_free
(
rs
->
sr_v2ref
);
rs
->
sr_v2ref
=
NULL
;
...
...
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