diff options
author | Matthias Andree <matthias.andree@gmx.de> | 2020-03-30 14:03:03 +0200 |
---|---|---|
committer | Matthias Andree <matthias.andree@gmx.de> | 2020-03-30 14:03:03 +0200 |
commit | d3d47ccbc933ee34151f0b42b83553a2f0e2b181 (patch) | |
tree | d05880b30043ed5c7d8144aa76dbd4a483142431 /fetchmail.c | |
parent | 463740a486ff322662f0553783fbae92f72f3464 (diff) | |
download | fetchmail-d3d47ccbc933ee34151f0b42b83553a2f0e2b181.tar.gz fetchmail-d3d47ccbc933ee34151f0b42b83553a2f0e2b181.tar.bz2 fetchmail-d3d47ccbc933ee34151f0b42b83553a2f0e2b181.zip |
Properly error-check reading the idfile.
Fixes #3 (Gitlab issue#).
Diffstat (limited to 'fetchmail.c')
-rw-r--r-- | fetchmail.c | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/fetchmail.c b/fetchmail.c index 0db805d7..69d80e23 100644 --- a/fetchmail.c +++ b/fetchmail.c @@ -373,10 +373,13 @@ int main(int argc, char **argv) { int st; - if (!versioninfo && (st = prc_filecheck(run.idfile, !versioninfo)) != 0) + if (!versioninfo && (st = prc_filecheck(run.idfile, !versioninfo)) != 0) { exit(st); - else - initialize_saved_lists(querylist, run.idfile); + } else { + if ((st = initialize_saved_lists(querylist, run.idfile))) { + exit(st); + } + } } #endif /* POP3_ENABLE */ |