diff options
author | Phil Pennock <pdp@exim.org> | 2011-10-03 08:10:11 -0400 |
---|---|---|
committer | Phil Pennock <pdp@exim.org> | 2011-10-03 08:10:11 -0400 |
commit | 0d0e445543703d3294a16a17a4606c9eade7afcb (patch) | |
tree | 0d162f7a692dfb2f49035ec2bc3edc13c6c64448 /src | |
parent | 0c7e18012fbe839480d6c657e1e39a2f4d41f6fe (diff) |
PP/12 fix uninitialised greeting string from PP/03exim-4_77_RC1
Diffstat (limited to 'src')
-rw-r--r-- | src/src/transports/smtp.c | 21 |
1 files changed, 10 insertions, 11 deletions
diff --git a/src/src/transports/smtp.c b/src/src/transports/smtp.c index 53012eced..c571d874c 100644 --- a/src/src/transports/smtp.c +++ b/src/src/transports/smtp.c @@ -1181,21 +1181,20 @@ if (tls_active >= 0) } } - /* For SMTPS we need to wait for the initial OK response. - Also, it seems likely that a server not supporting STARTTLS is broken - enough to perhaps not support EHLO. */ + /* For SMTPS we need to wait for the initial OK response. */ if (smtps) { if (!smtp_read_response(&inblock, buffer, sizeof(buffer), '2', ob->command_timeout)) goto RESPONSE_FAILED; - if (esmtp) - greeting_cmd = "EHLO"; - else - { - greeting_cmd = "HELO"; - DEBUG(D_transport) - debug_printf("not sending EHLO (host matches hosts_avoid_esmtp)\n"); - } + } + + if (esmtp) + greeting_cmd = "EHLO"; + else + { + greeting_cmd = "HELO"; + DEBUG(D_transport) + debug_printf("not sending EHLO (host matches hosts_avoid_esmtp)\n"); } if (smtp_write_command(&outblock, FALSE, "%s %s\r\n", |