diff options
author | Eduardo Chappa <chappa@washington.edu> | 2020-07-07 14:28:33 -0600 |
---|---|---|
committer | Eduardo Chappa <chappa@washington.edu> | 2020-07-07 14:28:33 -0600 |
commit | 233a20c754de34529d78bd9b200976c32b315e0e (patch) | |
tree | 091a79767d2d7709f3a7da400d255ba7f83f5936 /alpine | |
parent | 6170c9d0c1fc9185c4731c6e8bb8acbb14c451b3 (diff) | |
download | alpine-233a20c754de34529d78bd9b200976c32b315e0e.tar.xz |
* Crash in Alpine when opening an imap folder on an empty password file.
Diffstat (limited to 'alpine')
-rw-r--r-- | alpine/imap.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/alpine/imap.c b/alpine/imap.c index e9e1600..0368570 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 |