diff options
Diffstat (limited to 'usr.sbin/ppp/prompt.c')
-rw-r--r-- | usr.sbin/ppp/prompt.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.sbin/ppp/prompt.c b/usr.sbin/ppp/prompt.c index af333ee..46fb9ee 100644 --- a/usr.sbin/ppp/prompt.c +++ b/usr.sbin/ppp/prompt.c @@ -330,7 +330,7 @@ prompt_Create(struct server *s, struct bundle *bundle, int fd) p->fd_in = p->fd_out = fd; p->Term = fdopen(fd, "a+"); p->owner = s; - p->auth = *s->passwd ? LOCAL_NO_AUTH : LOCAL_AUTH; + p->auth = *s->cfg.passwd ? LOCAL_NO_AUTH : LOCAL_AUTH; p->src.type = "unknown"; *p->src.from = '\0'; } @@ -518,7 +518,7 @@ PasswdCommand(struct cmdargs const *arg) else pass = arg->argv[arg->argn]; - if (!strcmp(arg->prompt->owner->passwd, pass)) + if (!strcmp(arg->prompt->owner->cfg.passwd, pass)) arg->prompt->auth = LOCAL_AUTH; else arg->prompt->auth = LOCAL_NO_AUTH; |