]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
lib: connection: Remove clearing of event fields
authorTimo Sirainen <timo.sirainen@open-xchange.com>
Fri, 22 Nov 2019 14:59:55 +0000 (16:59 +0200)
committerAki Tuomi <aki.tuomi@open-xchange.com>
Tue, 26 Nov 2019 09:56:35 +0000 (11:56 +0200)
This was done mainly because the fields could have become mixed up when a
client connection event had a parent server connection event. But now that
the IP and port fields are different for client and server connections this
problem mainly doesn't exist.

src/lib/connection.c

index 82c537d2068d830090728c7f3c2ab2a055396b6a..b4b049b29272f1eb06ce9dd90e5851c3bbebae19 100644 (file)
@@ -619,8 +619,6 @@ void connection_init_client_ip_from(struct connection_list *list,
                i_zero(&conn->local_ip);
 
        connection_init(list, conn, name);
-
-       event_field_clear(conn->event, "socket_path");
        connection_update_event(conn);
 }
 
@@ -639,12 +637,6 @@ void connection_init_client_unix(struct connection_list *list,
        conn->unix_socket = TRUE;
 
        connection_init(list, conn, path);
-
-       event_field_clear(conn->event, "ip");
-       event_field_clear(conn->event, "port");
-       event_field_clear(conn->event, "client_ip");
-       event_field_clear(conn->event, "client_port");
-
        event_add_str(conn->event, "socket_path", path);
 }