mirror of
https://github.com/NLnetLabs/unbound.git
synced 2026-09-06 18:07:41 +02:00
Small off by one in targetcount and double-callback fixup.
git-svn-id: file:///svn/unbound/trunk@389 be551aaa-1e26-0410-a405-d3ace91eadb9
This commit is contained in:
+1
-1
@@ -940,7 +940,7 @@ query_for_targets(struct module_qstate* qstate, struct iter_qstate* iq,
|
||||
|
||||
/* if maxtargets is negative, there is no maximum,
|
||||
* otherwise only query for ntarget names. */
|
||||
if(maxtargets > 0 && ++target_count > maxtargets)
|
||||
if(maxtargets >= 0 && ++target_count > maxtargets)
|
||||
break;
|
||||
}
|
||||
*num = query_count;
|
||||
|
||||
Reference in New Issue
Block a user