When harvesting entropy from an ethernet mbuf, do so before freeing the

mbuf.

RELENG_5 candidate.
This commit is contained in:
rwatson 2004-10-11 10:21:34 +00:00
parent f39d624275
commit 6386ac36be

View File

@ -614,10 +614,10 @@ ether_input(struct ifnet *ifp, struct mbuf *m)
}
}
ether_demux(ifp, m);
/* First chunk of an mbuf contains good entropy */
if (harvest.ethernet)
random_harvest(m, 16, 3, 0, RANDOM_NET);
ether_demux(ifp, m);
}
/*