Fix a memory leak in ARP queues.

Pointed out by: jhb@
MFC after:	2 weeks
This commit is contained in:
George V. Neville-Neil 2011-01-07 20:02:05 +00:00
parent 3b232eb663
commit ede990172f

View File

@ -736,8 +736,7 @@ in_arpinput(struct mbuf *m)
la->la_numheld = 0;
memcpy(&sa, L3_ADDR(la), sizeof(sa));
LLE_WUNLOCK(la);
for (m_hold = la->la_hold, la->la_hold = NULL;
m_hold != NULL; m_hold = m_hold_next) {
for (; m_hold != NULL; m_hold = m_hold_next) {
m_hold_next = m_hold->m_nextpkt;
m_hold->m_nextpkt = NULL;
(*ifp->if_output)(ifp, m_hold, &sa, NULL);