Somebody once forgot to replace a sizeof(*response) with something less stupid after he has patched pppd so that response which was previously a pointer to a structure is now an unsigned char*, so the attached patch does what's needed will fix the problem... (I'll send it upstream to)

--
Guillaume KNISPEL
Proformatique - 67 rue Voltaire - 92800 Puteaux
Tel. : 01 41 38 99 60 - Fax. : 01 41 38 99 70
[EMAIL PROTECTED] - http://www.proformatique.com/

diff -Nru ppp-2.4.4.orig/pppd/chap_ms.c ppp-2.4.4/pppd/chap_ms.c
--- ppp-2.4.4.orig/pppd/chap_ms.c       2006-05-21 13:56:40.000000000 +0200
+++ ppp-2.4.4/pppd/chap_ms.c    2006-11-23 19:50:47.709231200 +0100
@@ -852,7 +852,7 @@
     u_char *p = &response[MS_CHAP2_PEER_CHALLENGE];
     int i;
 
-    BZERO(response, sizeof(*response));
+    BZERO(response, MS_CHAP2_RESPONSE_LEN);
 
     /* Generate the Peer-Challenge if requested, or copy it if supplied. */
     if (!PeerChallenge)

Reply via email to