From 13a03926f7cda93df0d6fc491fe1a89efb4e7366 Mon Sep 17 00:00:00 2001 From: lemoer Date: Thu, 1 Dec 2016 00:55:11 +0100 Subject: [PATCH] respondd: stop searching for interfaces if the right one was found --- net/respondd/src/respondd.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/net/respondd/src/respondd.c b/net/respondd/src/respondd.c index 4e9b383..6c8c02a 100644 --- a/net/respondd/src/respondd.c +++ b/net/respondd/src/respondd.c @@ -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));