Correct two bugs that may result in incorrect CBCP response for
authorMatthew Dillon <dillon@dragonflybsd.org>
Fri, 7 Jan 2005 20:19:54 +0000 (20:19 +0000)
committerMatthew Dillon <dillon@dragonflybsd.org>
Fri, 7 Jan 2005 20:19:54 +0000 (20:19 +0000)
commit9eb45a6b3026f724fe15df5ae20c2c33d17740b0
treeb025edb087e501491c88baa7d30aca620c8a7078
parentd751d01c71942d489a2d5fc938ca8e9dee76d8da
Correct two bugs that may result in incorrect CBCP response for
administrator specified number.

The implementation in our version transmits extra zero byte that is a
violation of the Microsoft PPP Callback Control Protocol section 3.2[1].
This can lead to incorrect behavior on certain devices, as reported
in bin/50613.

Confirmed with: cbcp.c in ppp's cvs, rev. 1.4 and 1.15 [2]

Submitted-by: Xin LI <delphij@frontfree.net>
Taken-From: FreeBSD/rev1.7
Submitted-to-FreeBSD-by: Dmitry Pryanishnikov <dmitry at atlantis.dp.ua>
PR: FreeBSD:bin/50613
usr.sbin/pppd/cbcp.c