When harvesting entropy from an ethernet mbuf, do so before freeing the
mbuf. RELENG_5 candidate.
This commit is contained in:
parent
f39d624275
commit
6386ac36be
@ -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);
|
||||
}
|
||||
|
||||
/*
|
||||
|
Loading…
Reference in New Issue
Block a user