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
This commit is contained in:
Brian Somers 2001-07-31 21:36:00 +00:00
parent b8ae14f673
commit 317e74fd2b
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=80763

View File

@ -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;