Fix bug in CHAP MS v2 handling where we didn't zero enough.
authorPaul Mackerras <paulus@samba.org>
Tue, 19 Dec 2006 08:38:14 +0000 (08:38 +0000)
committerPaul Mackerras <paulus@samba.org>
Tue, 19 Dec 2006 08:38:14 +0000 (08:38 +0000)
commit6eb63a6d40281b270c1fc56cf10452c4322daf67
tree90b810b6f1014dd61458c2bb0acd36e607c410fa
parentcd8692c099106d7acad6fd0215a899dae866792a
Fix bug in CHAP MS v2 handling where we didn't zero enough.

Changing the response parameter of the ChapMS2 function to an
unsigned char * meant that using sizeof(*response) in a BZERO call
was no longer correct.  Instead we need to use MS_CHAP2_RESPONSE_LEN.
Patch from Guillaume Knispel.
pppd/chap_ms.c