From 7df2dd67bd7db982f6f9b28348068c7af97bafa8 Mon Sep 17 00:00:00 2001 From: goldsimon Date: Wed, 19 Aug 2015 09:19:08 +0200 Subject: [PATCH] another fix for LWIP_MULTICAST_TX_OPTIONS: without LWIP_IGMP, udp_pcb->mcast_ttl was not initialized --- src/core/udp.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/core/udp.c b/src/core/udp.c index 2d25f6c4..09d20b46 100644 --- a/src/core/udp.c +++ b/src/core/udp.c @@ -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; }