git://git.exim.org
/
users
/
jgh
/
exim.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Bugzilla #1067 - DKIM: Fix relaxed header canon for headers ending with whitespace.
[users/jgh/exim.git]
/
src
/
src
/
transports
/
smtp.c
diff --git
a/src/src/transports/smtp.c
b/src/src/transports/smtp.c
index 41796a4d9d5d9d869a23748ea81afc189ac416cd..fb55ae01bbd7210962e5be0f5ed778faa1329779 100644
(file)
--- a/
src/src/transports/smtp.c
+++ b/
src/src/transports/smtp.c
@@
-1078,12
+1078,10
@@
if (tls_offered && !suppress_tls &&
if (!smtp_read_response(&inblock, buffer2, sizeof(buffer2), '2',
ob->command_timeout))
{
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))
if (errno != 0 || buffer2[0] == 0 ||
(buffer2[0] == '4' && !ob->tls_tempfail_tryclear))
- {
- Ustrncpy(buffer, buffer2, sizeof(buffer));
goto RESPONSE_FAILED;
goto RESPONSE_FAILED;
- }
}
/* STARTTLS accepted: try to negotiate a TLS session. */
}
/* STARTTLS accepted: try to negotiate a TLS session. */