diff --git a/usr.sbin/ppp/ccp.c b/usr.sbin/ppp/ccp.c index 0516024b55f..278fd506ef1 100644 --- a/usr.sbin/ppp/ccp.c +++ b/usr.sbin/ppp/ccp.c @@ -306,7 +306,7 @@ ccp_Required(struct ccp *ccp) int ccp_MTUOverhead(struct ccp *ccp) { - if (ccp->fsm.state == ST_OPENED) + if (ccp->fsm.state == ST_OPENED && ccp->out.algorithm >= 0) return algorithm[ccp->out.algorithm]->o.MTUOverhead; return 0;