mirror of
https://github.com/git/git.git
synced 2024-05-12 04:46:08 +02:00
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 values
This commit is contained in:
commit
139189b92e
|
@ -1234,7 +1234,7 @@ sub send_message {
|
|||
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