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

This commit is contained in:
Ludovic Marcotte
2018-08-01 10:47:43 -04:00
parent b98ec5c630
commit 5a48fca43d
2 changed files with 3 additions and 1 deletions
+2 -1
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];
}
}