Fix uninitialized access when adding multicast membership.

Thanks Keith for pointing this out.
This commit is contained in:
Justin Maggard 2014-02-18 10:39:43 -08:00
parent 65fb740414
commit 005cb0bd30

View File

@ -111,7 +111,7 @@ OpenAndConfSSDPReceiveSocket(void)
return -1; return -1;
} }
for (i = n_lan_addr; i > 0; i--) for (i = 0; i < n_lan_addr; i++)
{ {
if (AddMulticastMembership(s, &lan_addr[i]) < 0) if (AddMulticastMembership(s, &lan_addr[i]) < 0)
{ {