diff options
Diffstat (limited to 'apps/app_authenticate.c')
-rw-r--r-- | apps/app_authenticate.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/apps/app_authenticate.c b/apps/app_authenticate.c index 8e1919594..e746c6511 100644 --- a/apps/app_authenticate.c +++ b/apps/app_authenticate.c @@ -151,7 +151,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; |