summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorbrian <brian@openbsd.org>2001-07-31 21:37:15 +0000
committerbrian <brian@openbsd.org>2001-07-31 21:37:15 +0000
commitc28df4ac8d2ae21924c0b440de74e0479fc79365 (patch)
tree18da008ce3897c14723597b7e03dc10ae290d8bf
parentmore MLINK (diff)
downloadwireguard-openbsd-c28df4ac8d2ae21924c0b440de74e0479fc79365.tar.xz
wireguard-openbsd-c28df4ac8d2ae21924c0b440de74e0479fc79365.zip
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.
-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;