From 4d2f4ce78c340e7529ca7019c954b14ca211b958 Mon Sep 17 00:00:00 2001 From: goldsimon Date: Thu, 24 Sep 2015 10:39:13 +0200 Subject: [PATCH] udp: don't use ip4_2_ip() where not required --- src/core/udp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/core/udp.c b/src/core/udp.c index f2f3d15b..b3cdfe63 100644 --- a/src/core/udp.c +++ b/src/core/udp.c @@ -689,7 +689,7 @@ udp_sendto_if_chksum(struct udp_pcb *pcb, struct pbuf *p, const ip_addr_t *dst_i #if LWIP_IPV4 if (ip4_addr_isany(ip_2_ip4(&pcb->local_ip))) { /* use outgoing network interface IP address as source address */ - src_ip = ip4_2_ip(netif_ip4_addr(netif), &src_ip_tmp); + src_ip = &netif->ip_addr; } else { /* check if UDP PCB local IP address is correct * this could be an old address if netif->ip_addr has changed */