Mercurial > dovecot > core-2.2
changeset 19547:a6aa3aa7c296
auth: Don't crash if passwd-file can't be opened
author | Timo Sirainen <timo.sirainen@dovecot.fi> |
---|---|
date | Fri, 08 Jan 2016 18:12:21 +0200 |
parents | a52368764cfe |
children | 93b54ac4851c |
files | src/auth/db-passwd-file.c |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/src/auth/db-passwd-file.c Fri Jan 08 17:04:27 2016 +0200 +++ b/src/auth/db-passwd-file.c Fri Jan 08 18:12:21 2016 +0200 @@ -263,7 +263,7 @@ const char *error; if (pw->last_sync_time == ioloop_time) - return 0; + return hash_table_is_created(pw->users) ? 0 : -1; pw->last_sync_time = ioloop_time; if (stat(pw->path, &st) < 0) {