summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEduardo Chappa <chappa@washington.edu>2020-07-07 14:28:33 -0600
committerEduardo Chappa <chappa@washington.edu>2020-07-07 14:28:33 -0600
commit233a20c754de34529d78bd9b200976c32b315e0e (patch)
tree091a79767d2d7709f3a7da400d255ba7f83f5936
parent6170c9d0c1fc9185c4731c6e8bb8acbb14c451b3 (diff)
downloadalpine-233a20c754de34529d78bd9b200976c32b315e0e.tar.xz
* Crash in Alpine when opening an imap folder on an empty password file.
-rw-r--r--alpine/imap.c4
-rw-r--r--pith/pine.hlp2
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 =================
<HTML>
<HEAD>