another fix for LWIP_MULTICAST_TX_OPTIONS: without LWIP_IGMP, udp_pcb->mcast_ttl was not initialized

This commit is contained in:
goldsimon 2015-08-19 09:19:08 +02:00
parent 5be95aa377
commit 7df2dd67bd

View File

@ -1120,9 +1120,9 @@ udp_new(void)
/* initialize PCB to all zeroes */
memset(pcb, 0, sizeof(struct udp_pcb));
pcb->ttl = UDP_TTL;
#if LWIP_IGMP
#if LWIP_MULTICAST_TX_OPTIONS
pcb->mcast_ttl = UDP_TTL;
#endif
#endif /* LWIP_MULTICAST_TX_OPTIONS */
}
return pcb;
}