From eb8bf7c2ac6638dcfa1be7f54b669a0911b29b0b Mon Sep 17 00:00:00 2001 From: leitner Date: Fri, 22 Jan 2016 15:40:05 +0000 Subject: [PATCH] fix for infinite loop in case of query return limit --- tinyldap.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tinyldap.c b/tinyldap.c index 2cf86d4..38d8c3d 100644 --- a/tinyldap.c +++ b/tinyldap.c @@ -1450,7 +1450,7 @@ void reply_with_index(struct SearchRequest* sr,unsigned long* messageid,int out) uint32_unpack(map+indices_offset+4*i,&j); if (ldap_match_mapped(j,sr)) { if (sr->sizeLimit && sr->sizeLimit<++returned) - break; + return; answerwith(j,sr,*messageid,out); } }