summaryrefslogtreecommitdiffstats
path: root/sys/dev/ray
diff options
context:
space:
mode:
authordmlb <dmlb@FreeBSD.org>2001-03-04 20:56:45 +0000
committerdmlb <dmlb@FreeBSD.org>2001-03-04 20:56:45 +0000
commitea9cbc5d1870c03a5cb149268a35e49dde9f6ca9 (patch)
tree9e118e2ca5157668cd952c48e8ccdb6df3f1a4f8 /sys/dev/ray
parent1c4e3d51b79802e243de0825320182551e3cb530 (diff)
downloadFreeBSD-src-ea9cbc5d1870c03a5cb149268a35e49dde9f6ca9.zip
FreeBSD-src-ea9cbc5d1870c03a5cb149268a35e49dde9f6ca9.tar.gz
pkh's TAILQ changes to if_mutliaddrs missed a counting loop.
Diffstat (limited to 'sys/dev/ray')
-rw-r--r--sys/dev/ray/if_ray.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/dev/ray/if_ray.c b/sys/dev/ray/if_ray.c
index d28eb2d..b1b5dbd 100644
--- a/sys/dev/ray/if_ray.c
+++ b/sys/dev/ray/if_ray.c
@@ -2402,7 +2402,7 @@ ray_mcast(struct ray_softc *sc, struct ray_comq_entry *com)
struct ifnet *ifp = &sc->arpcom.ac_if;
struct ifmultiaddr *ifma;
size_t bufp;
- int count;
+ int count = 0;
RAY_DPRINTF(sc, RAY_DBG_SUBR, "");
RAY_MAP_CM(sc);
@@ -2421,6 +2421,7 @@ ray_mcast(struct ray_softc *sc, struct ray_comq_entry *com)
* mode and don't bother updating the multicast list.
*/
TAILQ_FOREACH(ifma, &ifp->if_multiaddrs, ifma_link)
+ count++;
if (count == 0) {
ray_com_runq_done(sc);
return;
OpenPOWER on IntegriCloud