diff options
author | John Jetmore <jetmore@exim.org> | 2010-07-19 21:18:51 -0500 |
---|---|---|
committer | John Jetmore <jetmore@exim.org> | 2010-07-19 21:18:51 -0500 |
commit | 5631d794a61b8fd891525a6e82982b1523bab772 (patch) | |
tree | 5433d0269c6482f0935c77d2a8defbc8202539f6 | |
parent | 659b5167360ab71547d0c06e915e0c9e47c7449b (diff) | |
parent | d41e4a9122eb42ec4fdc3bc6cc2a5094d0e515f1 (diff) |
Merge ssh://tahini.csx.cam.ac.uk/home/git/exim
-rw-r--r-- | src/src/transports/smtp.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/src/transports/smtp.c b/src/src/transports/smtp.c index fb55ae01b..41796a4d9 100644 --- a/src/src/transports/smtp.c +++ b/src/src/transports/smtp.c @@ -1078,10 +1078,12 @@ if (tls_offered && !suppress_tls && if (!smtp_read_response(&inblock, buffer2, sizeof(buffer2), '2', ob->command_timeout)) { - Ustrncpy(buffer, buffer2, sizeof(buffer)); if (errno != 0 || buffer2[0] == 0 || (buffer2[0] == '4' && !ob->tls_tempfail_tryclear)) + { + Ustrncpy(buffer, buffer2, sizeof(buffer)); goto RESPONSE_FAILED; + } } /* STARTTLS accepted: try to negotiate a TLS session. */ |