From 65c3fa6375ecb36ae955d184c223f3e2c2851d94 Mon Sep 17 00:00:00 2001 From: Gregory Nutt Date: Wed, 5 Jul 2017 07:27:17 -0600 Subject: [PATCH] net/udp: Fix a copy-paste error that could effect networking when both IPv4 and IPv6 are enabled. --- net/udp/udp_psock_sendto.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/net/udp/udp_psock_sendto.c b/net/udp/udp_psock_sendto.c index 8cdac7ff4b..616d1d3b47 100644 --- a/net/udp/udp_psock_sendto.c +++ b/net/udp/udp_psock_sendto.c @@ -194,7 +194,7 @@ static inline void sendto_ipselect(FAR struct net_driver_s *dev, /* Select the IPv6 domain */ DEBUGASSERT(psock->s_domain == PF_INET6); - udp_ipv4_select(dev); + udp_ipv6_select(dev); } } #endif