From 4f6fd6c845ca102b04e211cfe75eab484a1d969d Mon Sep 17 00:00:00 2001 From: Dirk Ziegelmeier Date: Sun, 24 Mar 2019 21:32:26 +0100 Subject: [PATCH] Fix bug #55973: The parsing of max response time in MLD Query message was wrong Apply patch from Gao Qingshui --- src/core/ipv6/mld6.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/core/ipv6/mld6.c b/src/core/ipv6/mld6.c index fb4e9ef4..fa4e7592 100644 --- a/src/core/ipv6/mld6.c +++ b/src/core/ipv6/mld6.c @@ -253,7 +253,7 @@ mld6_input(struct pbuf *p, struct netif *inp) while (group != NULL) { if ((!(ip6_addr_ismulticast_iflocal(&(group->group_address)))) && (!(ip6_addr_isallnodes_linklocal(&(group->group_address))))) { - mld6_delayed_report(group, mld_hdr->max_resp_delay); + mld6_delayed_report(group, lwip_ntohs(mld_hdr->max_resp_delay)); } group = group->next; } @@ -265,7 +265,7 @@ mld6_input(struct pbuf *p, struct netif *inp) group = mld6_lookfor_group(inp, ip6_current_dest_addr()); if (group != NULL) { /* Schedule a report. */ - mld6_delayed_report(group, mld_hdr->max_resp_delay); + mld6_delayed_report(group, lwip_ntohs(mld_hdr->max_resp_delay)); } } break; /* ICMP6_TYPE_MLQ */