pkh's TAILQ changes to if_mutliaddrs missed a counting loop.

This commit is contained in:
dmlb 2001-03-04 20:56:45 +00:00
parent 2e5b6e2b93
commit 6a5ea7c4b0

View File

@ -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;