From 3fbdf159814d321f8b747e760673234cf63745f7 Mon Sep 17 00:00:00 2001 From: peter Date: Sun, 21 Jul 1996 17:14:06 +0000 Subject: Don't dereference sc->sc_setmtu if it's NULL (such as when it's not running) as discussed on current. (bde pointed out the cause of the problem) Reported by: dev@fgate.flevel.co.uk --- sys/net/if_ppp.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'sys/net/if_ppp.c') diff --git a/sys/net/if_ppp.c b/sys/net/if_ppp.c index 0e677d1..bf4fb39 100644 --- a/sys/net/if_ppp.c +++ b/sys/net/if_ppp.c @@ -69,7 +69,7 @@ * Paul Mackerras (paulus@cs.anu.edu.au). */ -/* $Id: if_ppp.c,v 1.34 1996/06/10 23:07:33 gpalmer Exp $ */ +/* $Id: if_ppp.c,v 1.35 1996/06/12 19:24:00 gpalmer Exp $ */ /* from if_ppp.c,v 1.5 1995/08/16 01:36:38 paulus Exp */ /* from if_sl.c,v 1.11 84/10/04 12:54:47 rick Exp */ @@ -533,7 +533,8 @@ pppsioctl(ifp, cmd, data) error = EINVAL; else { sc->sc_if.if_mtu = ifr->ifr_mtu; - (*sc->sc_setmtu)(sc); + if (sc->sc_setmtu) + (*sc->sc_setmtu)(sc); } break; -- cgit v1.1