diff options
-rw-r--r-- | apps/app_authenticate.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/apps/app_authenticate.c b/apps/app_authenticate.c index 408de55f8..d700741bf 100644 --- a/apps/app_authenticate.c +++ b/apps/app_authenticate.c @@ -150,11 +150,11 @@ static int auth_exec(struct ast_channel *chan, void *data) for (;;) { size_t len; - fgets(buf, sizeof(buf), f); - if (feof(f)) break; + fgets(buf, sizeof(buf), f); + if (ast_strlen_zero(buf)) continue; |