1
0
mirror of https://git.FreeBSD.org/src.git synced 2025-01-17 15:27:36 +00:00

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

This commit is contained in:
Duncan Barclay 2001-03-04 20:56:45 +00:00
parent 8125b1e66e
commit a6a0d91dba
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=73535

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;