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

mbuf.

RELENG_5 candidate.
This commit is contained in:
Robert Watson 2004-10-11 10:21:34 +00:00
parent 5d604c1161
commit acf032f516

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);
}
/*