This fixes a bug introduced in
08ef47ca ("pppd: Make MSCHAP-v2 cope
better with packet loss").
Signed-off-by: Paul Mackerras <paulus@samba.org>
unsigned char *private)
{
const struct chapms2_response_cache_entry *cache_entry;
unsigned char *private)
{
const struct chapms2_response_cache_entry *cache_entry;
- unsigned char auth_response[MS_AUTH_RESPONSE_LENGTH];
+ unsigned char auth_response[MS_AUTH_RESPONSE_LENGTH+1];
challenge++; /* skip length, should be 16 */
*response++ = MS_CHAP2_RESPONSE_LEN;
challenge++; /* skip length, should be 16 */
*response++ = MS_CHAP2_RESPONSE_LEN;