summaryrefslogtreecommitdiff
path: root/apps/app_authenticate.c
diff options
context:
space:
mode:
Diffstat (limited to 'apps/app_authenticate.c')
-rw-r--r--apps/app_authenticate.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/apps/app_authenticate.c b/apps/app_authenticate.c
index 10d0b2f73..69abf6f38 100644
--- a/apps/app_authenticate.c
+++ b/apps/app_authenticate.c
@@ -181,7 +181,9 @@ static int auth_exec(struct ast_channel *chan, void *data)
if (feof(f))
break;
- fgets(buf, sizeof(buf), f);
+ if (!fgets(buf, sizeof(buf), f)) {
+ continue;
+ }
if (ast_strlen_zero(buf))
continue;