miniupnpd/minissdp.c: check return value of AddMulticastMembershipIPv6()
This commit is contained in:
parent
ab7865ae99
commit
49780a99ea
|
@ -1,4 +1,4 @@
|
||||||
/* $Id: minissdp.c,v 1.54 2013/06/15 12:50:10 nanard Exp $ */
|
/* $Id: minissdp.c,v 1.56 2014/02/01 16:35:37 nanard Exp $ */
|
||||||
/* MiniUPnP project
|
/* MiniUPnP project
|
||||||
* http://miniupnp.free.fr/ or http://miniupnp.tuxfamily.org/
|
* http://miniupnp.free.fr/ or http://miniupnp.tuxfamily.org/
|
||||||
* (c) 2006-2013 Thomas Bernard
|
* (c) 2006-2013 Thomas Bernard
|
||||||
|
@ -146,7 +146,11 @@ OpenAndConfSSDPReceiveSocket(int ipv6)
|
||||||
#ifdef ENABLE_IPV6
|
#ifdef ENABLE_IPV6
|
||||||
if(ipv6)
|
if(ipv6)
|
||||||
{
|
{
|
||||||
AddMulticastMembershipIPv6(s);
|
if(AddMulticastMembershipIPv6(s) < 0)
|
||||||
|
{
|
||||||
|
syslog(LOG_WARNING,
|
||||||
|
"Failed to add IPv6 multicast membership");
|
||||||
|
}
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
#endif
|
#endif
|
||||||
|
|
Loading…
Reference in New Issue