summaryrefslogtreecommitdiff
path: root/usr.sbin
diff options
context:
space:
mode:
authorbrian <brian@cvs.openbsd.org>2001-07-31 21:37:16 +0000
committerbrian <brian@cvs.openbsd.org>2001-07-31 21:37:16 +0000
commit8d906efb897d691966043d6f9831ddaa49839d2f (patch)
tree2253a04a61a58fbbea6e3d029e083f3f3ba4c6b0 /usr.sbin
parentca19995016bea353c2ed45bc78d8be0db4a93c56 (diff)
Don't include a NUL at the end of our CHAP SUCCESS packet.
When encryption (MPPE) is enabled, WindowsME and Windows98 both fail because of the extra byte, suggesting that they autheticated successfully in their log and then dropping the connection, telling the user that the peer doesn't support compatible encryption options.
Diffstat (limited to 'usr.sbin')
-rw-r--r--usr.sbin/ppp/ppp/chap.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.sbin/ppp/ppp/chap.c b/usr.sbin/ppp/ppp/chap.c
index b1105ef3d6f..cdf55eb875f 100644
--- a/usr.sbin/ppp/ppp/chap.c
+++ b/usr.sbin/ppp/ppp/chap.c
@@ -25,7 +25,7 @@
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*
- * $OpenBSD: chap.c,v 1.28 2001/07/31 12:11:28 brian Exp $
+ * $OpenBSD: chap.c,v 1.29 2001/07/31 21:37:15 brian Exp $
*/
#include <sys/param.h>
@@ -549,7 +549,7 @@ chap_Success(struct authinfo *authp)
#endif
msg = "Welcome!!";
- ChapOutput(authp->physical, CHAP_SUCCESS, authp->id, msg, strlen(msg) + 1,
+ ChapOutput(authp->physical, CHAP_SUCCESS, authp->id, msg, strlen(msg),
NULL);
authp->physical->link.lcp.auth_ineed = 0;