From 233a20c754de34529d78bd9b200976c32b315e0e Mon Sep 17 00:00:00 2001 From: Eduardo Chappa Date: Tue, 7 Jul 2020 14:28:33 -0600 Subject: * Crash in Alpine when opening an imap folder on an empty password file. --- alpine/imap.c | 4 +--- pith/pine.hlp | 2 +- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/alpine/imap.c b/alpine/imap.c index e9e16000..03685707 100644 --- a/alpine/imap.c +++ b/alpine/imap.c @@ -3190,7 +3190,7 @@ read_passfile(pinerc, l) char tmp[MAILTMPLEN], *ui[5]; int i, j, n, rv = 0; - size_t len; + size_t len = 0; char *tmptext = NULL; struct stat sbuf; #ifdef SMIME @@ -3214,8 +3214,6 @@ read_passfile(pinerc, l) #ifndef SMIME if(our_stat(tmp, &sbuf) == 0) len = sbuf.st_size; - else - len = 0; fp = our_fopen(tmp, "rb"); /* reopen to read data */ #else /* the next call initializes the key/certificate pair used to diff --git a/pith/pine.hlp b/pith/pine.hlp index 5fd05293..b751666b 100644 --- a/pith/pine.hlp +++ b/pith/pine.hlp @@ -140,7 +140,7 @@ with help text for the config screen and the composer that didn't have any reasonable place to be called from. Dummy change to get revision in pine.hlp ============= h_revision ================= -Alpine Commit 482 2020-07-05 00:48:47 +Alpine Commit 486 2020-07-07 14:25:41 ============= h_news ================= -- cgit v1.2.3-54-g00ecf