summaryrefslogtreecommitdiff
path: root/alpine/imap.c
diff options
context:
space:
mode:
authorEduardo Chappa <chappa@washington.edu>2016-10-05 19:05:24 -0600
committerEduardo Chappa <chappa@washington.edu>2016-10-05 19:05:24 -0600
commitb3cae4deb342505d445af54093c39b0d3a7a8f28 (patch)
tree0f31a8a673caa535792f433d8a92accebafe502f /alpine/imap.c
parent4f2c1e32cfe0ebcb628c5a55a52eef283aa39446 (diff)
downloadalpine-b3cae4deb342505d445af54093c39b0d3a7a8f28.tar.xz
* Add return codes to setup_pwdcert function, so that caller can know
what happened and decide accordingly. Fixes the fact that Alpine will fail to create self signed certificate, when the .pwd directory does not exist.
Diffstat (limited to 'alpine/imap.c')
-rw-r--r--alpine/imap.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/alpine/imap.c b/alpine/imap.c
index 45cc860a..497801b5 100644
--- a/alpine/imap.c
+++ b/alpine/imap.c
@@ -2351,7 +2351,7 @@ read_passfile(pinerc, l)
if(tmp2[0]){ /* not empty, UNencrypted password file */
if(ps_global->pwdcert == NULL)
rv = setup_pwdcert(&ps_global->pwdcert);
- if(rv == 0 && ps_global->pwdcert == NULL)
+ if((rv == 0 || rv == -5) && ps_global->pwdcert == NULL)
ps_global->pwdcert = (void *) ALPINE_self_signed_certificate(NULL, 0, ps_global->pwdcertdir, MASTERNAME);
if(ps_global->pwdcert == NULL){
q_status_message(SM_ORDER, 3, 3,