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),
&i_ttl, sizeof(i_ttl));
if (bind (fd6, (struct sockaddr *)&addr, sizeof (addr)) == 0)
if (bind (fd6, (struct sockaddr *)&addr, sizeof (addr)))
close (fd6);
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