respondd: stop searching for interfaces if the right one was found

This commit is contained in:
lemoer 2016-12-01 00:55:11 +01:00
parent 916729963f
commit 13a03926f7
1 changed files with 3 additions and 1 deletions

View File

@ -518,8 +518,10 @@ static void accept_request(struct request_schedule *schedule, int sock,
uint64_t max_multicast_delay = MAX_MULTICAST_DELAY_DEFAULT;
struct interface_delay_info *tmp = if_delay_info_list;
for (; tmp; tmp = tmp->next) {
if (tmp->ifindex == ifindex)
if (tmp->ifindex == ifindex) {
max_multicast_delay = tmp->max_multicast_delay;
break;
}
}
struct request_task *new_task = malloc(sizeof(*new_task));