diff options
| author | Matthew Dillon <dillon@FreeBSD.org> | 2002-02-05 02:00:56 +0000 |
|---|---|---|
| committer | Matthew Dillon <dillon@FreeBSD.org> | 2002-02-05 02:00:56 +0000 |
| commit | ecde8f7c29a43912ff0bb4ee5874d67754b375ab (patch) | |
| tree | ddce9732dedf55dfc29f00f3efed3b0ce5e9788e /sys/netgraph/ng_async.c | |
| parent | 14102e47d3d5018240a34a2eb058212c098afc28 (diff) | |
Notes
Diffstat (limited to 'sys/netgraph/ng_async.c')
| -rw-r--r-- | sys/netgraph/ng_async.c | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/sys/netgraph/ng_async.c b/sys/netgraph/ng_async.c index f88fd70ebfb3..08ac40e4969f 100644 --- a/sys/netgraph/ng_async.c +++ b/sys/netgraph/ng_async.c @@ -472,15 +472,12 @@ nga_rcv_sync(const sc_p sc, item_p item) /* Add packet payload */ while (m != NULL) { - struct mbuf *n; - while (m->m_len > 0) { ADD_BYTE(*mtod(m, u_char *)); m->m_data++; m->m_len--; } - MFREE(m, n); - m = n; + m = m_free(m); } /* Add checksum and final sync flag */ @@ -597,8 +594,7 @@ reset: sc->fcs = PPP_FCS(sc->fcs, ch); } } - MFREE(m, n); - m = n; + m = m_free(m); } if (item) NG_FREE_ITEM(item); |
