Commit 34a6f495 authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont

Flawed logical (again)

parent 32c4acbf
...@@ -88,7 +88,7 @@ Broadcast::Broadcast(int i_ttl, const char *psz_iface) : fd4 (-1), fd6 (-1), ...@@ -88,7 +88,7 @@ Broadcast::Broadcast(int i_ttl, const char *psz_iface) : fd4 (-1), fd6 (-1),
setsockopt (fd6, IPPROTO_IPV6, IPV6_MULTICAST_HOPS, setsockopt (fd6, IPPROTO_IPV6, IPV6_MULTICAST_HOPS,
&i_ttl, sizeof(i_ttl)); &i_ttl, sizeof(i_ttl));
if (bind (fd6, (struct sockaddr *)&addr, sizeof (addr)) == 0) if (bind (fd6, (struct sockaddr *)&addr, sizeof (addr)))
{ {
close (fd6); close (fd6);
fd6 = -1; fd6 = -1;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment