diff options
| author | Brian Somers <brian@FreeBSD.org> | 2000-03-31 21:08:43 +0000 |
|---|---|---|
| committer | Brian Somers <brian@FreeBSD.org> | 2000-03-31 21:08:43 +0000 |
| commit | e9d0dd0a1b11fb755c1de60848ec79a3c2eb3eee (patch) | |
| tree | c832c9f2aa8c2c2926f0eca70e3cd59e29cd71d2 /usr.sbin/ppp/command.c | |
| parent | daaf7aae153703ae8d6e217bfcea1e96ebc2dea0 (diff) | |
Notes
Diffstat (limited to 'usr.sbin/ppp/command.c')
| -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 8bb3651d0372..ed532028b59b 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; |
