summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--usr.sbin/ppp/ccp.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/usr.sbin/ppp/ccp.c b/usr.sbin/ppp/ccp.c
index 0516024b55f4..278fd506ef1e 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;