diff options
author | brian <brian@FreeBSD.org> | 2001-07-31 21:36:00 +0000 |
---|---|---|
committer | brian <brian@FreeBSD.org> | 2001-07-31 21:36:00 +0000 |
commit | 704f051282bf6cf5d382fc0506a40d3b7322fc3c (patch) | |
tree | 8b5efc1a1c8707cbb9451c9cb8de75f8d8af40f7 /usr.sbin/ppp/chap.c | |
parent | d5e7d19520628d762006bbe97e15498b141f0eb4 (diff) | |
download | FreeBSD-src-704f051282bf6cf5d382fc0506a40d3b7322fc3c.zip FreeBSD-src-704f051282bf6cf5d382fc0506a40d3b7322fc3c.tar.gz |
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.
MFC after: 1 week
Diffstat (limited to 'usr.sbin/ppp/chap.c')
-rw-r--r-- | usr.sbin/ppp/chap.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/usr.sbin/ppp/chap.c b/usr.sbin/ppp/chap.c index bb43eec..de7ddd8 100644 --- a/usr.sbin/ppp/chap.c +++ b/usr.sbin/ppp/chap.c @@ -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; |