Restore original formulation of SPX segment queue draining during SPX

PCB detach.

MFC after:	1 month
This commit is contained in:
Robert Watson 2006-03-26 02:33:44 +00:00
parent f4cda13bed
commit 0597c8cf73

View File

@ -1427,7 +1427,9 @@ spx_pcbdetach(struct ipxpcb *ipxp)
cb = ipxtospxpcb(ipxp);
KASSERT(cb != NULL, ("spx_pcbdetach: cb == NULL"));
for (s = cb->s_q.si_next; s != NULL; s = cb->s_q.si_next) {
s = cb->s_q.si_next;
while (s != &(cb->s_q)) {
s = s->si_next;
remque(s);
m = dtom(s);
m_freem(m);