X-Git-Url: https://git.ozlabs.org/?a=blobdiff_plain;f=pppd%2Fchap_ms.c;h=ffb6bd13c1ef45bc4956db1ee6bf494576444df0;hb=115c4194d63974dd83b8fbbd69a623f7ae88b313;hp=c2bd00f9c6f7ec0e3e3a5dd6b00c4153b6c41d25;hpb=36733a891fb56594fcee580f667b33a64b990981;p=ppp.git diff --git a/pppd/chap_ms.c b/pppd/chap_ms.c index c2bd00f..ffb6bd1 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[])); @@ -424,6 +423,8 @@ chapms2_check_success(int id, unsigned char *msg, int len) len -= MS_AUTH_RESPONSE_LENGTH; if ((len >= 3) && !strncmp((char *)msg, " M=", 3)) { msg += 3; /* Eat the delimiter */ + } else if ((len >= 2) && !strncmp((char *)msg, "M=", 2)) { + msg += 2; /* Eat the delimiter */ } else if (len) { /* Packet has extra text which does not begin " M=" */ error("MS-CHAPv2 Success packet is badly formed.");