mirror of
https://git.FreeBSD.org/src.git
synced 2024-12-23 11:18:54 +00:00
Fix a bug which results in peer IPv4 addresses a.b.c.d with 224<=d<=239
incorrectly being detected as multicast addresses on little endian systems. MFC after: 2 weeks
This commit is contained in:
parent
cd70197aa9
commit
fc0487080a
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=212099
@ -5988,7 +5988,7 @@ sctp_load_addresses_from_init(struct sctp_tcb *stcb, struct mbuf *m,
|
||||
}
|
||||
p4 = (struct sctp_ipv4addr_param *)phdr;
|
||||
sin.sin_addr.s_addr = p4->addr;
|
||||
if (IN_MULTICAST(sin.sin_addr.s_addr)) {
|
||||
if (IN_MULTICAST(ntohl(sin.sin_addr.s_addr))) {
|
||||
/* Skip multi-cast addresses */
|
||||
goto next_param;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user