diff options
-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; |