X-Git-Url: https://git.ozlabs.org/?a=blobdiff_plain;f=pppd%2Fchap_ms.c;h=1de50428fa4d5636c514957734dd1840c1fc76e5;hb=7f2f0deae2e0055373ccdd995cd3027aca546549;hp=016b42e0c10ee9a845a3e96ad8aa55dcb2b0464c;hpb=08ef47ca532294eb428238c831616748940e24a2;p=ppp.git diff --git a/pppd/chap_ms.c b/pppd/chap_ms.c index 016b42e..1de5042 100644 --- a/pppd/chap_ms.c +++ b/pppd/chap_ms.c @@ -94,7 +94,6 @@ #include "pppcrypt.h" #include "magic.h" -static const char rcsid[] = RCSID; static void ascii2unicode __P((char[], int, u_char[])); @@ -382,7 +381,7 @@ chapms2_make_response(unsigned char *response, int id, char *our_name, 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;