* [PATCH] git-send-email: Do not attempt to STARTTLS more than once
@ 2008-07-02 22:11 Thomas Rast
0 siblings, 0 replies; only message in thread
From: Thomas Rast @ 2008-07-02 22:11 UTC (permalink / raw)
To: git; +Cc: Junio C Hamano
With the previous TLS patch, send-email would attempt to STARTTLS at
the beginning of every mail, despite reusing the last connection. We
simply skip further encryption checks after successful TLS initiation.
Signed-off-by: Thomas Rast <trast@student.ethz.ch>
---
git-send-email.perl | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
diff --git a/git-send-email.perl b/git-send-email.perl
index a047b01..3564419 100755
--- a/git-send-email.perl
+++ b/git-send-email.perl
@@ -772,6 +772,7 @@ X-Mailer: git-send-email $gitversion
if ($smtp->code == 220) {
$smtp = Net::SMTP::SSL->start_SSL($smtp)
or die "STARTTLS failed! ".$smtp->message;
+ $smtp_encryption = '';
} else {
die "Server does not support STARTTLS! ".$smtp->message;
}
--
1.5.6.1.278.g3d7f6
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2008-07-02 22:12 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-07-02 22:11 [PATCH] git-send-email: Do not attempt to STARTTLS more than once Thomas Rast
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).