# HG changeset patch # User markus schnalke # Date 1319545888 -7200 # Node ID b0708fac99dd13b7c0108c522fbe2968cc7dd3ec # Parent f122535c589eeb3241968d5e3d1df6f9435adda8 Fixed a problem with psb->remote_host, introduced in changeset 412385b57dc4 diff -r f122535c589e -r b0708fac99dd src/deliver.c --- a/src/deliver.c Tue Oct 25 13:51:43 2011 +0200 +++ b/src/deliver.c Tue Oct 25 14:31:28 2011 +0200 @@ -368,7 +368,10 @@ } if (route->wrapper) { - psb = smtp_out_open_child(route->wrapper, host); + psb = smtp_out_open_child(route->wrapper); + if (psb) { + psb->remote_host = host; + } } else { psb = smtp_out_open(host, port, res_list); } diff -r f122535c589e -r b0708fac99dd src/smtp_out.c --- a/src/smtp_out.c Tue Oct 25 13:51:43 2011 +0200 +++ b/src/smtp_out.c Tue Oct 25 14:31:28 2011 +0200 @@ -511,13 +511,12 @@ } smtp_base* -smtp_out_open_child(gchar *cmd, char *host) +smtp_out_open_child(gchar *cmd) { smtp_base *psb; gint sock; DEBUG(5) debugf("smtp_out_open_child entered, cmd = %s\n", cmd); - psb->remote_host = host; sock = child(cmd); if (sock <= 0) { return NULL; diff -r f122535c589e -r b0708fac99dd src/smtp_out.h --- a/src/smtp_out.h Tue Oct 25 13:51:43 2011 +0200 +++ b/src/smtp_out.h Tue Oct 25 14:31:28 2011 +0200 @@ -76,7 +76,7 @@ gboolean set_auth(smtp_base *psb, gchar *name, gchar *login, gchar *secret); void destroy_smtpbase(smtp_base *psb); smtp_base *smtp_out_open(gchar *host, gint port, GList *resolve_list); -smtp_base *smtp_out_open_child(gchar *cmd, char *host); +smtp_base *smtp_out_open_child(gchar *cmd); gboolean smtp_out_rset(smtp_base *psb); gboolean smtp_out_init(smtp_base *psb, gboolean instant_helo); gint smtp_out_msg(smtp_base *psb, message *msg, address *return_path, GList *rcpt_list, GList *hdr_list);