Skip to content

Commit

Permalink
lib-smtp: client: connection: Fix copying of PROTO XCLIENT field in p…
Browse files Browse the repository at this point in the history
…roxy data.
  • Loading branch information
stephanbosch authored and sirainen committed Dec 4, 2018
1 parent fe373da commit 5404be8
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/lib-smtp/smtp-client-connection.c
Expand Up @@ -1885,6 +1885,7 @@ smtp_client_connection_do_create(struct smtp_client *client, const char *name,
conn->set.debug = conn->set.debug || set->debug;

if (set->proxy_data.source_ip.family != 0) {
conn->set.proxy_data.proto = set->proxy_data.proto;
conn->set.proxy_data.source_ip = set->proxy_data.source_ip;
conn->set.proxy_data.source_port = set->proxy_data.source_port;
conn->set.proxy_data.ttl_plus_1 = set->proxy_data.ttl_plus_1;
Expand Down

0 comments on commit 5404be8

Please sign in to comment.