summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJeremy Harris <jgh146exb@wizmail.org>2017-01-31 16:00:54 +0000
committerJeremy Harris <jgh146exb@wizmail.org>2017-01-31 16:13:42 +0000
commita65c415633eb8753963ea6b42e0b3a8a0f2a1393 (patch)
tree9fbcf4ca3164a8fe29078d95a7fd6870d824d718 /src
parentde6273b487f1b5599894b09c1c8793ac22fb6cc8 (diff)
Callouts: fix recipient verify/random
Broken-by: e9166683487c
Diffstat (limited to 'src')
-rw-r--r--src/src/verify.c13
1 files changed, 9 insertions, 4 deletions
diff --git a/src/src/verify.c b/src/src/verify.c
index 3dd2d3a39..96c2b66cc 100644
--- a/src/src/verify.c
+++ b/src/src/verify.c
@@ -778,6 +778,9 @@ tls_retry_connection:
need another return code filtering out to here.
*/
+ /* Remember when we last did a random test */
+ new_domain_record.random_stamp = time(NULL);
+
if (smtp_write_mail_and_rcpt_cmds(&sx, &yield) == 0)
switch(addr->transport_return)
{
@@ -810,13 +813,15 @@ tls_retry_connection:
(void) event_raise(addr->transport->event_action,
US"tcp:close", NULL);
#endif
+ addr->address = main_address;
+ addr->transport_return = PENDING_DEFER;
+ sx.first_addr = sx.sync_addr = addr;
+ sx.ok = FALSE;
+ sx.send_rset = TRUE;
+ sx.completed_addr = FALSE;
goto tls_retry_connection;
}
- /* Remember when we last did a random test */
-
- new_domain_record.random_stamp = time(NULL);
-
/* Re-setup for main verify, or for the error message when failing */
addr->address = main_address;
addr->transport_return = PENDING_DEFER;