summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorArthur de Jong <arthur@arthurdejong.org>2014-01-03 21:25:32 +0100
committerArthur de Jong <arthur@arthurdejong.org>2014-01-05 21:43:26 +0100
commitf009c96b36f3bf00c091097cec9496752845e7c6 (patch)
tree80fa1e55a1a82582237c3d1adef86b4e26d2b08f
parent4f6dfdd636a6d5db649a70c781ef9b3901a1b760 (diff)
Ignore missing page controls
Since we could get arbitrray controls and are only interested in page controls we ignore failures to find page controls.
-rw-r--r--nslcd/myldap.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/nslcd/myldap.c b/nslcd/myldap.c
index e2daf17..57c420c 100644
--- a/nslcd/myldap.c
+++ b/nslcd/myldap.c
@@ -1499,7 +1499,8 @@ MYLDAP_ENTRY *myldap_get_entry(MYLDAP_SEARCH *search, int *rcp)
&count, &(search->cookie));
if (rc != LDAP_SUCCESS)
{
- myldap_err(LOG_WARNING, search->session->ld, rc, "ldap_parse_page_control() failed");
+ if (rc != LDAP_CONTROL_NOT_FOUND)
+ myldap_err(LOG_WARNING, search->session->ld, rc, "ldap_parse_page_control() failed");
/* clear error flag */
rc = LDAP_SUCCESS;
if (ldap_set_option(search->session->ld, LDAP_OPT_ERROR_NUMBER,