diff options
Diffstat (limited to 'usr.sbin/ppp/prompt.c')
| -rw-r--r-- | usr.sbin/ppp/prompt.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/usr.sbin/ppp/prompt.c b/usr.sbin/ppp/prompt.c index 5e39f00ff5fd..565245328e45 100644 --- a/usr.sbin/ppp/prompt.c +++ b/usr.sbin/ppp/prompt.c @@ -190,7 +190,8 @@ prompt_Read(struct descriptor *d, struct bundle *bundle, const fd_set *fdset) if (n) { if ((op = log_PromptContext) == NULL) log_PromptContext = p; - command_Decode(bundle, linebuff, n, p, p->src.from); + if (!command_Decode(bundle, linebuff, n, p, p->src.from)) + prompt_Printf(p, "Syntax error\n"); log_PromptContext = op; } } else if (n <= 0) { |
