Merge branch 'bc/send-email-ssl-die-message-fix'
When send-email comes up with an error message to die with upon failure to start an SSL session, it tried to read the error string from a wrong place. * bc/send-email-ssl-die-message-fix: send-email: don't call methods on undefined valuesmaint
commit
139189b92e
|
@ -1234,7 +1234,7 @@ X-Mailer: git-send-email $gitversion
|
|||
if ($smtp->code == 220) {
|
||||
$smtp = Net::SMTP::SSL->start_SSL($smtp,
|
||||
ssl_verify_params())
|
||||
or die "STARTTLS failed! ".$smtp->message;
|
||||
or die "STARTTLS failed! ".IO::Socket::SSL::errstr();
|
||||
$smtp_encryption = '';
|
||||
# Send EHLO again to receive fresh
|
||||
# supported commands
|
||||
|
|
Loading…
Reference in New Issue