summaryrefslogtreecommitdiffstats
path: root/sys/net
diff options
context:
space:
mode:
authorrwatson <rwatson@FreeBSD.org>2004-10-11 10:21:34 +0000
committerrwatson <rwatson@FreeBSD.org>2004-10-11 10:21:34 +0000
commit91c64388daaf191322de530515d83fa4c451f656 (patch)
tree62a202f5056c2bee2260141b92d7660153962670 /sys/net
parentfb00aab954e0483b6b03b584ff7e684cb31df938 (diff)
downloadFreeBSD-src-91c64388daaf191322de530515d83fa4c451f656.zip
FreeBSD-src-91c64388daaf191322de530515d83fa4c451f656.tar.gz
When harvesting entropy from an ethernet mbuf, do so before freeing the
mbuf. RELENG_5 candidate.
Diffstat (limited to 'sys/net')
-rw-r--r--sys/net/if_ethersubr.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/net/if_ethersubr.c b/sys/net/if_ethersubr.c
index 080dcfb..2a5a030 100644
--- a/sys/net/if_ethersubr.c
+++ b/sys/net/if_ethersubr.c
@@ -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);
}
/*
OpenPOWER on IntegriCloud