From 3dfe7dd363b008b9b508419b1ebb9dc7aaaf4bff Mon Sep 17 00:00:00 2001 From: Chris Fitch Date: Tue, 30 Jul 2024 13:20:42 -0400 Subject: [PATCH] Fix issues from copying changes between repos --- src/udp/mcast.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/udp/mcast.c b/src/udp/mcast.c index 14c118860..3513fa506 100644 --- a/src/udp/mcast.c +++ b/src/udp/mcast.c @@ -3,6 +3,8 @@ * * Copyright (C) 2010 Creytiv.com */ +#include + #include #include #include @@ -50,7 +52,7 @@ static int multicast_update(struct udp_sock *us, const struct sa *group, case AF_INET6: mreq6.ipv6mr_multiaddr = group->u.in6.sin6_addr; mreq6.ipv6mr_interface = if_index; - if (if_index = 0) { + if (if_index == 0) { mreq6.ipv6mr_interface = sa_scopeid(group); }