diff --git a/sys/net/gnrc/sock/udp/gnrc_sock_udp.c b/sys/net/gnrc/sock/udp/gnrc_sock_udp.c index 257deeb3ec6ff..d3b86c2dedc54 100644 --- a/sys/net/gnrc/sock/udp/gnrc_sock_udp.c +++ b/sys/net/gnrc/sock/udp/gnrc_sock_udp.c @@ -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; } }