diff --git a/usr.sbin/pppd/ccp.c b/usr.sbin/pppd/ccp.c index b36c8a0f821f..9c2fd5538835 100644 --- a/usr.sbin/pppd/ccp.c +++ b/usr.sbin/pppd/ccp.c @@ -26,7 +26,7 @@ */ #ifndef lint -static char rcsid[] = "$Id: ccp.c,v 1.2 1995/10/31 21:20:49 peter Exp $"; +static char rcsid[] = "$Id: ccp.c,v 1.3 1995/10/31 21:29:19 peter Exp $"; #endif #include @@ -497,6 +497,10 @@ ccp_up(f) syslog(LOG_NOTICE, "%s enabled", go->bsd_compress? ho->bsd_compress? "Compression": "Receive compression": "Transmit compression"); + if (!ANY_COMPRESS(ccp_gotoptions[f->unit])) { + syslog(LOG_NOTICE, "No matching compression scheme, CCP disabled"); + ccp_close(f->unit); + } } /*