(fix) avoid displaying empty signed emails when using GNU TLS (fixes #4433)

pull/229/merge
Ludovic Marcotte 2018-08-01 10:47:43 -04:00
parent b98ec5c630
commit 5a48fca43d
2 changed files with 3 additions and 1 deletions

1
NEWS
View File

@ -9,6 +9,7 @@ Enhancements
Bug fixes
- [core] handle multi-valued mozillasecondemail attribute mapping
- [core] avoid displaying empty signed emails when using GNU TLS (#4433)
- [web] improve popup window detection in message viewer (#4518)
4.0.1 (2018-07-10)

View File

@ -170,8 +170,9 @@
if (err)
{
ERR_load_crypto_strings();
SSL_load_error_strings();
sslError = ERR_reason_error_string(err);
validationMessage = [[self labelForKey: [NSString stringWithUTF8String: sslError]] retain];
validationMessage = [[self labelForKey: [NSString stringWithUTF8String: sslError ? sslError : "(no error information available)"]] retain];
}
}