diff options
author | brian <brian@FreeBSD.org> | 1998-10-31 17:38:48 +0000 |
---|---|---|
committer | brian <brian@FreeBSD.org> | 1998-10-31 17:38:48 +0000 |
commit | 23ce0ead1d6a4116dd8022f9504a4632792c5149 (patch) | |
tree | cb6390bcf7d4d8f89f54b198073ef71a8cf7aa1f /usr.sbin/ppp/cbcp.c | |
parent | 80c3cfe47403d60f8d88dc7d1e5166eb985947a2 (diff) | |
download | FreeBSD-src-23ce0ead1d6a4116dd8022f9504a4632792c5149.zip FreeBSD-src-23ce0ead1d6a4116dd8022f9504a4632792c5149.tar.gz |
If the CBCP callee offsers no callback, send our configured
response anyway. This is what Win95 does, despite it not
being documented in the cbcp spec....
Reported by: Bill <petheram@acm.org>
Diffstat (limited to 'usr.sbin/ppp/cbcp.c')
-rw-r--r-- | usr.sbin/ppp/cbcp.c | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/usr.sbin/ppp/cbcp.c b/usr.sbin/ppp/cbcp.c index 9d01ef5..415e6e2 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.5 1998/10/17 12:28:11 brian Exp $ + * $Id: cbcp.c,v 1.6 1998/10/25 23:35:15 brian Exp $ */ #include <sys/types.h> @@ -354,10 +354,12 @@ cbcp_AdjustResponse(struct cbcp *cbcp, struct cbcp_data *data) switch (data->type) { case CBCP_NONUM: - if (cbcp->fsm.type == CBCP_NONUM) - return 1; - log_Printf(LogPHASE, "CBCP: server wants no callback !\n"); - return 0; + /* + * If the callee offers no callback, we send our desired response + * anyway. This is what Win95 does - although I can't find this + * behaviour documented in the spec.... + */ + return 1; case CBCP_CLIENTNUM: if (cbcp->fsm.type == CBCP_CLIENTNUM) { |