mirror of
https://github.com/freebsd/freebsd-src
synced 2024-11-05 18:22:52 +00:00
The long-time-waited-for patch for PPP.
See Gene's mail for explanation.. Submitted by: Gene Stark
This commit is contained in:
parent
d117a622c6
commit
033f71c8e2
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=4783
1 changed files with 2 additions and 1 deletions
|
@ -69,7 +69,7 @@
|
|||
* Paul Mackerras (paulus@cs.anu.edu.au).
|
||||
*/
|
||||
|
||||
/* $Id: if_ppp.c,v 1.5 1994/11/01 09:03:16 pst Exp $ */
|
||||
/* $Id: if_ppp.c,v 1.6 1994/11/01 22:18:34 wollman Exp $ */
|
||||
/* from if_sl.c,v 1.11 84/10/04 12:54:47 rick Exp */
|
||||
|
||||
#include "ppp.h"
|
||||
|
@ -432,6 +432,7 @@ pppwrite(tp, uio, flag)
|
|||
m_freem(m0);
|
||||
return (ENOBUFS);
|
||||
}
|
||||
m->m_len=0;
|
||||
if (uio->uio_resid >= MCLBYTES / 2)
|
||||
MCLGET(m, M_DONTWAIT);
|
||||
len = M_TRAILINGSPACE(m);
|
||||
|
|
Loading…
Reference in a new issue