Date: Wed, 18 Jun 1997 04:06:48 +0100 From: Brian Somers <brian@awfulhak.org> To: Mark Tinguely <tinguely@plains.NoDak.edu>, Stephen Roome <steve@visint.co.uk>, Robert Huff <rhuff@cybercom.net>, freebsd-hackers@freebsd.org, Ari Suutari <ari.suutari@ps.carel.fi> Subject: pppd/natd Message-ID: <199706180306.EAA01797@awfulhak.demon.co.uk>
next in thread | raw e-mail | index | archive | help
I've just applied a small patch that fixes the pppd/natd crash in 2.2 & -current. The patch isn't the perfect solution, but it will get things up and running for the time being. I'll continue to look into what's actually causing the garbage mbuf in the first place. If anybody *isn't* using cvsup or ctm, the patch is as follows: diff -c -r1.19 ppp_tty.c *** ppp_tty.c 1997/06/09 04:13:48 1.19 --- ppp_tty.c 1997/06/18 02:41:14 *************** *** 641,646 **** --- 641,651 ---- } s = spltty(); /* in case.. do not want netisrs to preempt us */ + + m = sc->sc_outm; + if (m && m->m_len < 0) + MFREE(m, sc->sc_outm); + idle = 0; while (CCOUNT(&tp->t_outq) < PPP_HIWAT) { /* -- Brian <brian@awfulhak.org>, <brian@freebsd.org> <http://www.awfulhak.org> Don't _EVER_ lose your sense of humour....
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199706180306.EAA01797>