From 2d00a7cfa8a9357a1b4a9d3118e70065431d98a2 Mon Sep 17 00:00:00 2001 From: patacongo Date: Wed, 14 Jul 2010 17:09:45 +0000 Subject: Costmetic clean-up git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@2799 42af7a65-404d-4744-a932-0658087f49c3 --- nuttx/net/uip/uip_igmpinput.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'nuttx/net/uip/uip_igmpinput.c') diff --git a/nuttx/net/uip/uip_igmpinput.c b/nuttx/net/uip/uip_igmpinput.c index ed56d9adb..61803fcca 100755 --- a/nuttx/net/uip/uip_igmpinput.c +++ b/nuttx/net/uip/uip_igmpinput.c @@ -142,6 +142,11 @@ void uip_igmpinput(struct uip_driver_s *dev) destipaddr = uip_ip4addr_conv(IGMPBUF->destipaddr); group = uip_grpallocfind(dev, &destipaddr); + if (!group) + { + nlldbg("Failed to allocate/find group: %08x\n", destipaddr); + return; + } /* Now handle the message based on the IGMP message type */ @@ -210,7 +215,7 @@ void uip_igmpinput(struct uip_driver_s *dev) } } } - else /* if (group->grpaddr != 0) */ + else /* if (IGMPBUF->grpaddr != 0) */ { nllvdbg("Group-specific multicast queury\n"); -- cgit v1.2.3