mirror of
https://github.com/nmap/nmap.git
synced 2025-12-17 05:09:00 +00:00
Rework a loop to give access to the condition.
This commit is contained in:
@@ -397,9 +397,12 @@ Target *nexthost(HostGroupState *hs, const addrset *exclude_group,
|
|||||||
if (hs->current_batch_sz < hs->max_batch_sz &&
|
if (hs->current_batch_sz < hs->max_batch_sz &&
|
||||||
hs->next_expression < hs->num_expressions) {
|
hs->next_expression < hs->num_expressions) {
|
||||||
/* We are going to have to pop in another expression. */
|
/* We are going to have to pop in another expression. */
|
||||||
while(hs->current_expression.parse_expr(hs->target_expressions[hs->next_expression++], o.af()) != 0)
|
while (hs->next_expression < hs->num_expressions) {
|
||||||
if (hs->next_expression >= hs->num_expressions)
|
const char *expr;
|
||||||
|
expr = hs->target_expressions[hs->next_expression++];
|
||||||
|
if (hs->current_expression.parse_expr(expr, o.af()) == 0)
|
||||||
break;
|
break;
|
||||||
|
}
|
||||||
} else break;
|
} else break;
|
||||||
} while(1);
|
} while(1);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user