Skip to content

Commit

Permalink
fixup! fixup! gnrc_sock_udp: accept response from any address if remo…
Browse files Browse the repository at this point in the history
…te is multicast
  • Loading branch information
benpicco committed Nov 15, 2022
1 parent d064feb commit 64d4de4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions sys/net/gnrc/sock/udp/gnrc_sock_udp.c
Original file line number Diff line number Diff line change
Expand Up @@ -138,8 +138,8 @@ int sock_udp_create(sock_udp_t *sock, const sock_udp_ep_t *local,
(sock_ip_ep_t *)remote, sizeof(sock_udp_ep_t));

/* only accept responses from the set remote */
if (!(ipv6_addr_is_multicast((ipv6_addr_t *)&remote->addr) ||
ipv6_addr_is_unspecified((ipv6_addr_t *)&remote->addr))) {
if (!ipv6_addr_is_multicast((ipv6_addr_t *)&remote->addr) &&
!ipv6_addr_is_unspecified((ipv6_addr_t *)&remote->addr)) {
flags |= SOCK_FLAGS_CONNECT_REMOTE;
}
}
Expand Down

0 comments on commit 64d4de4

Please sign in to comment.