From 49780a99ea68f6a9399975fe7b78c87643631de9 Mon Sep 17 00:00:00 2001 From: Thomas Bernard Date: Mon, 3 Feb 2014 10:42:38 +0100 Subject: [PATCH] miniupnpd/minissdp.c: check return value of AddMulticastMembershipIPv6() --- miniupnpd/minissdp.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/miniupnpd/minissdp.c b/miniupnpd/minissdp.c index a67c94b..d593fe8 100644 --- a/miniupnpd/minissdp.c +++ b/miniupnpd/minissdp.c @@ -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 * http://miniupnp.free.fr/ or http://miniupnp.tuxfamily.org/ * (c) 2006-2013 Thomas Bernard @@ -146,7 +146,11 @@ OpenAndConfSSDPReceiveSocket(int ipv6) #ifdef ENABLE_IPV6 if(ipv6) { - AddMulticastMembershipIPv6(s); + if(AddMulticastMembershipIPv6(s) < 0) + { + syslog(LOG_WARNING, + "Failed to add IPv6 multicast membership"); + } } else #endif