diff options
Diffstat (limited to 'imap/src/c-client/smtp.c')
-rw-r--r-- | imap/src/c-client/smtp.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/imap/src/c-client/smtp.c b/imap/src/c-client/smtp.c index 7c1f9936..ee225477 100644 --- a/imap/src/c-client/smtp.c +++ b/imap/src/c-client/smtp.c @@ -345,7 +345,8 @@ long smtp_auth (SENDSTREAM *stream,NETMBX *mb,char *tmp) sprintf (tmp,"Can not authenticate to SMTP server: %.80s",lsterr); mm_log (tmp,ERROR); } - delete_password(mb, usr); + if(!ret && stream->netstream) + delete_password(mb, usr); fs_give ((void **) &lsterr); } if(mb && *mb->auth){ |