summaryrefslogtreecommitdiffstats
path: root/package/ppp/patches/104-debian_fix_mschapv2_ppp.patch
blob: 0b4faf914c30e8853dad4d61764a0bbdb8bb1b59 (plain)
1
2
3
4
5
6
7
8
9
10
11
--- a/pppd/chap_ms.c
+++ b/pppd/chap_ms.c
@@ -852,7 +852,7 @@ ChapMS2(u_char *rchallenge, u_char *Peer
     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)