diff options
author | Dmitry Kozlov <xeb@mail.ru> | 2015-12-25 21:40:29 +0300 |
---|---|---|
committer | Dmitry Kozlov <xeb@mail.ru> | 2015-12-25 21:41:26 +0300 |
commit | 44ae0ed6312dd2d6f81f01e2f66b70029f08e68f (patch) | |
tree | 6900af35e922c17c12751fbd39aa81d6df0ba6be /accel-pppd/ppp | |
parent | 343af33b08ebc83791fd57a1ccdef91ce1ac2a9e (diff) | |
download | accel-ppp-44ae0ed6312dd2d6f81f01e2f66b70029f08e68f.tar.gz accel-ppp-44ae0ed6312dd2d6f81f01e2f66b70029f08e68f.zip |
ppp_auth: fixed broken noauth mode
Diffstat (limited to 'accel-pppd/ppp')
-rw-r--r-- | accel-pppd/ppp/ppp_auth.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/accel-pppd/ppp/ppp_auth.c b/accel-pppd/ppp/ppp_auth.c index 238b21ea..aa663bf0 100644 --- a/accel-pppd/ppp/ppp_auth.c +++ b/accel-pppd/ppp/ppp_auth.c @@ -84,6 +84,12 @@ static struct lcp_option_t *auth_init(struct ppp_lcp_t *lcp) INIT_LIST_HEAD(&ad->auth_opt.auth_list); + if (conf_noauth) { + if (connect_ppp_channel(lcp->ppp)) + return NULL; + return &ad->auth_opt.opt; + } + list_for_each_entry(h, &auth_handlers, entry) { d = h->init(lcp->ppp); d->h = h; |