Fix build in IPv4 only case when source based routing is disabled

This commit is contained in:
Dirk Ziegelmeier 2017-02-10 22:52:43 +01:00
parent def87c0c23
commit de05424ff6

View File

@ -516,6 +516,8 @@ udp_sendto_chksum(struct udp_pcb *pcb, struct pbuf *p, const ip_addr_t *dst_ip,
struct netif *netif;
const ip_addr_t *src_ip_route;
LWIP_UNUSED_ARG(src_ip_route); /* IPv4 only and no source based routing */
if ((pcb == NULL) || (dst_ip == NULL) || !IP_ADDR_PCB_VERSION_MATCH(pcb, dst_ip)) {
return ERR_VAL;
}