summaryrefslogtreecommitdiff
path: root/accel-pppd/auth
diff options
context:
space:
mode:
Diffstat (limited to 'accel-pppd/auth')
-rw-r--r--accel-pppd/auth/auth_chap_md5.c1
-rw-r--r--accel-pppd/auth/auth_mschap_v1.c1
-rw-r--r--accel-pppd/auth/auth_mschap_v2.c1
-rw-r--r--accel-pppd/auth/auth_pap.c1
4 files changed, 4 insertions, 0 deletions
diff --git a/accel-pppd/auth/auth_chap_md5.c b/accel-pppd/auth/auth_chap_md5.c
index de7f741..87d5eda 100644
--- a/accel-pppd/auth/auth_chap_md5.c
+++ b/accel-pppd/auth/auth_chap_md5.c
@@ -100,6 +100,7 @@ static struct auth_data_t* auth_data_init(struct ppp_t *ppp)
memset(d, 0, sizeof(*d));
d->auth.proto = PPP_CHAP;
+ d->auth.len = 1;
d->ppp = ppp;
return &d->auth;
diff --git a/accel-pppd/auth/auth_mschap_v1.c b/accel-pppd/auth/auth_mschap_v1.c
index 23b0f0e..d00e1a7 100644
--- a/accel-pppd/auth/auth_mschap_v1.c
+++ b/accel-pppd/auth/auth_mschap_v1.c
@@ -101,6 +101,7 @@ static struct auth_data_t* auth_data_init(struct ppp_t *ppp)
memset(d, 0, sizeof(*d));
d->auth.proto = PPP_CHAP;
+ d->auth.len = 1;
d->ppp = ppp;
return &d->auth;
diff --git a/accel-pppd/auth/auth_mschap_v2.c b/accel-pppd/auth/auth_mschap_v2.c
index 66e17f2..1c8e444 100644
--- a/accel-pppd/auth/auth_mschap_v2.c
+++ b/accel-pppd/auth/auth_mschap_v2.c
@@ -105,6 +105,7 @@ static struct auth_data_t* auth_data_init(struct ppp_t *ppp)
memset(d, 0, sizeof(*d));
d->auth.proto = PPP_CHAP;
+ d->auth.len = 1;
d->ppp = ppp;
return &d->auth;
diff --git a/accel-pppd/auth/auth_pap.c b/accel-pppd/auth/auth_pap.c
index a2303d1..7becc47 100644
--- a/accel-pppd/auth/auth_pap.c
+++ b/accel-pppd/auth/auth_pap.c
@@ -73,6 +73,7 @@ static struct auth_data_t* auth_data_init(struct ppp_t *ppp)
memset(d, 0, sizeof(*d));
d->auth.proto = PPP_PAP;
+ d->auth.len = 0;
d->ppp = ppp;
return &d->auth;