summaryrefslogtreecommitdiff
path: root/accel-pppd/auth
diff options
context:
space:
mode:
authorKozlov Dmitry <xeb@mail.ru>2012-05-28 17:51:51 +0400
committerKozlov Dmitry <xeb@mail.ru>2012-05-28 17:51:51 +0400
commitd28a6eb2a5a672b235a5cb8055c0764565b1e526 (patch)
treeea8bab612f92363fcf6e3c00cf6cc209eb10ce68 /accel-pppd/auth
parent2065efc2f718ddd29432e3fa9ef5b1afb308ba8c (diff)
downloadaccel-ppp-d28a6eb2a5a672b235a5cb8055c0764565b1e526.tar.gz
accel-ppp-d28a6eb2a5a672b235a5cb8055c0764565b1e526.zip
auth_mschap_v2: remove debugging code
Diffstat (limited to 'accel-pppd/auth')
-rw-r--r--accel-pppd/auth/auth_mschap_v2.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/accel-pppd/auth/auth_mschap_v2.c b/accel-pppd/auth/auth_mschap_v2.c
index 24272e73..aeb49077 100644
--- a/accel-pppd/auth/auth_mschap_v2.c
+++ b/accel-pppd/auth/auth_mschap_v2.c
@@ -606,16 +606,12 @@ static void chap_recv(struct ppp_handler_t *h)
{
struct chap_auth_data_t *d = container_of(h, typeof(*d), h);
struct chap_hdr_t *hdr = (struct chap_hdr_t *)d->ppp->buf;
- static int drop=1;
if (d->ppp->buf_size < sizeof(*hdr) || ntohs(hdr->len) < HDR_LEN || ntohs(hdr->len) < d->ppp->buf_size - 2) {
log_ppp_warn("mschap-v2: short packet received\n");
return;
}
- if (drop-- == 1)
- return;
-
if (hdr->code == CHAP_RESPONSE)
chap_recv_response(d, hdr);
else