Commit 0f888f9d authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont

Don't compute the same value twice

parent 3176362d
......@@ -60,8 +60,6 @@ Broadcast::Broadcast(int i_ttl, const char *psz_iface) : fd4 (-1), fd6 (-1),
if (psz_iface != NULL)
int scope_id = if_nametoindex (psz_iface);
if (scope_id != 0)
if (setsockopt (fd6, IPPROTO_IPV6, IPV6_MULTICAST_IF,
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