X-Git-Url: https://git.ozlabs.org/?a=blobdiff_plain;f=pppd%2Fchap_ms.c;h=75724c514b0946ad24e7c06d52bcf3eff9eca996;hb=dedb8ad67549c26ee30264c8eaa1eae449b3d9f7;hp=e3dff968c038de706205bff8fb046778311eb28b;hpb=74fc0589bb4ec8f9e37711067cdc58dd5447cde5;p=ppp.git diff --git a/pppd/chap_ms.c b/pppd/chap_ms.c index e3dff96..75724c5 100644 --- a/pppd/chap_ms.c +++ b/pppd/chap_ms.c @@ -74,7 +74,7 @@ * */ -#define RCSID "$Id: chap_ms.c,v 1.35 2006/05/21 07:23:15 paulus Exp $" +#define RCSID "$Id: chap_ms.c,v 1.36 2006/05/21 11:56:40 paulus Exp $" #ifdef CHAPMS @@ -390,7 +390,7 @@ chapms_handle_failure(unsigned char *inp, int len) * chapms[2]_verify_response. */ if (!strncmp(p, "E=", 2)) - err = strtol(p, NULL, 10); /* Remember the error code. */ + err = strtol(p+2, NULL, 10); /* Remember the error code. */ else goto print_msg; /* Message is badly formatted. */