From dd39af173ba7e20360fff462cd5848aeb9471a4c Mon Sep 17 00:00:00 2001 From: James Carlson Date: Sat, 1 Dec 2007 20:10:51 +0000 Subject: [PATCH] Repaired MSLANMAN so that it doesn't drop core: need to pass offset into response array, not address of stack pointer. (Broken in r1.34.) --- pppd/Makefile.sol2 | 4 ++-- pppd/chap_ms.c | 5 +++-- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/pppd/Makefile.sol2 b/pppd/Makefile.sol2 index 62b2370..49e73c7 100644 --- a/pppd/Makefile.sol2 +++ b/pppd/Makefile.sol2 @@ -1,6 +1,6 @@ # # Makefile for pppd under Solaris 2. -# $Id: Makefile.sol2,v 1.28 2007/06/19 02:08:35 carlsonj Exp $ +# $Id: Makefile.sol2,v 1.29 2007/12/01 20:10:51 carlsonj Exp $ # include ../Makedefs.com @@ -33,7 +33,7 @@ LIBS += -ldl #OBJS += ipv6cp.o eui64.o # Uncomment to enable MS-CHAP -#CFLAGS += -DUSE_CRYPT -DCHAPMS -DHAVE_CRYPT_H +#CFLAGS += -DUSE_CRYPT -DCHAPMS -DMSLANMAN -DHAVE_CRYPT_H #OBJS += chap_ms.o pppcrypt.o md4.o sha1.o # Uncomment for CBCP diff --git a/pppd/chap_ms.c b/pppd/chap_ms.c index b8feeb8..aec1226 100644 --- a/pppd/chap_ms.c +++ b/pppd/chap_ms.c @@ -74,7 +74,7 @@ * */ -#define RCSID "$Id: chap_ms.c,v 1.37 2006/12/19 08:38:14 paulus Exp $" +#define RCSID "$Id: chap_ms.c,v 1.38 2007/12/01 20:10:51 carlsonj Exp $" #ifdef CHAPMS @@ -819,7 +819,8 @@ ChapMS(u_char *rchallenge, char *secret, int secret_len, ChapMS_NT(rchallenge, secret, secret_len, &response[MS_CHAP_NTRESP]); #ifdef MSLANMAN - ChapMS_LANMan(rchallenge, secret, secret_len, &response); + ChapMS_LANMan(rchallenge, secret, secret_len, + &response[MS_CHAP_LANMANRESP]); /* preferred method is set by option */ response[MS_CHAP_USENT] = !ms_lanman; -- 2.39.2