]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
lmtp: proxy: Removed dns_client_socket_path from struct lmtp_proxy_settings.
authorStephan Bosch <stephan.bosch@dovecot.fi>
Wed, 23 Nov 2016 09:43:53 +0000 (10:43 +0100)
committerStephan Bosch <stephan.bosch@dovecot.fi>
Thu, 7 Dec 2017 23:08:15 +0000 (00:08 +0100)
It is globally accessible.

src/lmtp/lmtp-proxy.c
src/lmtp/lmtp-proxy.h

index c2a278b2c052cb69c499d0e35b83da051665a3fb..eaf7e51c50512a8260532dbd6b42f830fbd8d77e 100644 (file)
@@ -94,8 +94,6 @@ lmtp_proxy_init(const struct lmtp_proxy_settings *set,
        proxy->pool = pool;
        proxy->client_output = client_output;
        proxy->set.my_hostname = p_strdup(pool, set->my_hostname);
-       proxy->set.dns_client_socket_path =
-               p_strdup(pool, set->dns_client_socket_path);
        proxy->set.session_id = p_strdup(pool, set->session_id);
        proxy->set.source_ip = set->source_ip;
        proxy->set.source_port = set->source_port;
@@ -105,7 +103,7 @@ lmtp_proxy_init(const struct lmtp_proxy_settings *set,
 
        i_zero(&lmtp_set);
        lmtp_set.my_hostname = set->my_hostname;
-       lmtp_set.dns_client_socket_path = set->dns_client_socket_path;
+       lmtp_set.dns_client_socket_path = dns_client_socket_path;
 
        lmtp_set.proxy_data.source_ip = set->source_ip;
        lmtp_set.proxy_data.source_port = set->source_port;
@@ -523,7 +521,6 @@ bool client_proxy_rcpt(struct client *client,
 
                i_zero(&proxy_set);
                proxy_set.my_hostname = client->my_domain;
-               proxy_set.dns_client_socket_path = dns_client_socket_path;
                proxy_set.session_id = client->state.session_id;
                proxy_set.source_ip = client->remote_ip;
                proxy_set.source_port = client->remote_port;
index f10e73bb500cb237c4816bd7439213c0fca592bd..eeb1cb92013f6c85b44d9c9beb676244be752e32 100644 (file)
@@ -13,7 +13,6 @@ struct client;
 
 struct lmtp_proxy_settings {
        const char *my_hostname;
-       const char *dns_client_socket_path;
        const char *session_id;
 
        /* the original client's IP/port that connected to the proxy */