fix for infinite loop in case of query return limit

This commit is contained in:
leitner
2016-01-22 15:40:05 +00:00
parent 4a12975f61
commit eb8bf7c2ac

View File

@@ -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);
}
}