diff options
| author | Brian Somers <brian@FreeBSD.org> | 1998-10-17 12:28:08 +0000 |
|---|---|---|
| committer | Brian Somers <brian@FreeBSD.org> | 1998-10-17 12:28:08 +0000 |
| commit | f21c8aecd103d97644db090852b85e329bd0915b (patch) | |
| tree | 10b18123e15777a2d77639f218cca65f0dbe557a | |
| parent | cf784a89b7f8d34ac4f26b716afd7e32280ac2ca (diff) | |
Notes
| -rw-r--r-- | usr.sbin/ppp/cbcp.c | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/usr.sbin/ppp/cbcp.c b/usr.sbin/ppp/cbcp.c index 27f83e9f204d..a8689f80af61 100644 --- a/usr.sbin/ppp/cbcp.c +++ b/usr.sbin/ppp/cbcp.c @@ -23,7 +23,7 @@ * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. * - * $Id: cbcp.c,v 1.1 1998/08/07 18:44:16 brian Exp $ + * $Id: cbcp.c,v 1.2 1998/08/26 17:39:38 brian Exp $ */ #include <sys/types.h> @@ -548,6 +548,13 @@ cbcp_CheckResponse(struct cbcp *cbcp, struct cbcp_data *data) log_Printf(LogPHASE, "Internal CBCP error - agreed on %d ??!?\n", (int)cbcp->fsm.type); return CBCP_ACTION_DOWN; + } else if (data->type == CBCP_NONUM && cbcp->fsm.type == CBCP_CLIENTNUM) { + /* + * Client doesn't want CBCP after all.... + * We only allow this when ``set cbcp *'' has been specified. + */ + cbcp->fsm.type = CBCP_NONUM; + return CBCP_ACTION_ACK; } log_Printf(LogCBCP, "Invalid peer RESPONSE\n"); return CBCP_ACTION_REQ; |
