From 00d71de444cebd8e8fb9f1a6f538b0e25756fcbd Mon Sep 17 00:00:00 2001 From: brian Date: Sun, 9 May 1999 20:02:29 +0000 Subject: Deal with the fact that as we now mbuf_Read the fsm header in fsm_Input() we often end up with a NULL mbuf. Deal with a possible NULL mbuf being passed into mbuf_Prepend(). Adjust some spacing to make things more consistent. --- usr.sbin/ppp/lcp.c | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) (limited to 'usr.sbin/ppp/lcp.c') diff --git a/usr.sbin/ppp/lcp.c b/usr.sbin/ppp/lcp.c index 0e45418..c7f059d 100644 --- a/usr.sbin/ppp/lcp.c +++ b/usr.sbin/ppp/lcp.c @@ -17,7 +17,7 @@ * IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED * WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE. * - * $Id: lcp.c,v 1.72 1999/04/11 08:51:04 brian Exp $ + * $Id: lcp.c,v 1.73 1999/05/08 11:06:51 brian Exp $ * */ @@ -874,9 +874,7 @@ LcpDecodeConfig(struct fsm *fp, u_char *cp, int plen, int mode_type, dec->ackend += 2; } else { #ifdef OLDMST - /* - * MorningStar before v1.3 needs NAK - */ + /* MorningStar before v1.3 needs NAK */ memcpy(dec->nakend, cp, 2); dec->nakend += 2; #else @@ -902,9 +900,7 @@ LcpDecodeConfig(struct fsm *fp, u_char *cp, int plen, int mode_type, dec->ackend += 2; } else { #ifdef OLDMST - /* - * MorningStar before v1.3 needs NAK - */ + /* MorningStar before v1.3 needs NAK */ memcpy(dec->nakend, cp, 2); dec->nakend += 2; #else -- cgit v1.1