]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
lib: connection: Rename unix_peer_known to unix_peer_checked
authorTimo Sirainen <timo.sirainen@open-xchange.com>
Mon, 25 Nov 2019 13:18:51 +0000 (15:18 +0200)
committerAki Tuomi <aki.tuomi@open-xchange.com>
Tue, 26 Nov 2019 09:56:35 +0000 (11:56 +0200)
This reflects more correctly what it means.

src/lib/connection.c
src/lib/connection.h

index d1c222a4871453c013525f20ee62af029043e88a..91310d9c7a4850c6f7ed45f62abb080953b8b7c9 100644 (file)
@@ -384,7 +384,7 @@ connection_update_properties(struct connection *conn)
        if (conn->remote_ip.family != 0) {
                /* remote IP was already set */
                i_assert(conn->remote_port != 0);
-       } else if (conn->unix_peer_known) {
+       } else if (conn->unix_peer_checked) {
                /* already checked */
        } else if (fd < 0) {
                /* not connected yet - wait */
@@ -405,7 +405,7 @@ connection_update_properties(struct connection *conn)
                        conn->remote_pid = cred.pid;
                        conn->remote_uid = cred.uid;
                }
-               conn->unix_peer_known = TRUE;
+               conn->unix_peer_checked = TRUE;
        }
 
        connection_update_property_label(conn);
index 45f4c8e9265bc4047503eb641cc33a819e6c6917..5b1493b43a187c4a9945d9cd8f1a166ac7be4bdd 100644 (file)
@@ -157,7 +157,7 @@ struct connection {
        bool version_received:1;
        bool handshake_received:1;
        bool unix_socket:1;
-       bool unix_peer_known:1;
+       bool unix_peer_checked:1;
        bool disconnected:1;
 };