diff options
author | brian <brian@FreeBSD.org> | 2000-03-31 21:08:43 +0000 |
---|---|---|
committer | brian <brian@FreeBSD.org> | 2000-03-31 21:08:43 +0000 |
commit | 2b63c0a8d449f69ff7db5e320580b9e318236533 (patch) | |
tree | 9bea637b1c75eaf669f759788881e9c78a95ad1f | |
parent | 95a45b1a5bf41f608f51239fa21c9d9a5ca08595 (diff) | |
download | FreeBSD-src-2b63c0a8d449f69ff7db5e320580b9e318236533.zip FreeBSD-src-2b63c0a8d449f69ff7db5e320580b9e318236533.tar.gz |
Allow authname to be changed at any phase, just emit a warning
if it's not DEAD or ESTABLISH
-rw-r--r-- | usr.sbin/ppp/command.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/usr.sbin/ppp/command.c b/usr.sbin/ppp/command.c index 8bb3651..ed53202 100644 --- a/usr.sbin/ppp/command.c +++ b/usr.sbin/ppp/command.c @@ -1457,16 +1457,16 @@ SetVariable(struct cmdargs const *arg) case VAR_AUTHNAME: switch (bundle_Phase(arg->bundle)) { + default: + log_Printf(LogWARN, "Altering authname while at phase %s\n", + bundle_PhaseName(arg->bundle)); + /* drop through */ case PHASE_DEAD: case PHASE_ESTABLISH: strncpy(arg->bundle->cfg.auth.name, argp, sizeof arg->bundle->cfg.auth.name - 1); arg->bundle->cfg.auth.name[sizeof arg->bundle->cfg.auth.name-1] = '\0'; break; - default: - err = "set authname: Only available at phase DEAD/ESTABLISH\n"; - log_Printf(LogWARN, err); - break; } break; |