[#] http://marc.info/?l=openbsd-cvs&m=141109520319731&w=2
openbsd-cvs(obsdave,2) — All
2014-09-19 06:56:07


Module name: src
Changes by: dlg@cvs.openbsd.org 2014/09/18 20:52:55

Modified files:
sys/net : bpf.c

Log message:
passing M_NOWAIT to m_tag_get means it can fail, which could hit
the failure path which leaks all the stuff the previous code in
bpf_movein allocates.

since it's only called from bpfwrite, use M_WAIT instead to make
it reliable and just get rid of the bogus failure code.

ok miod@