From: Timo Sirainen Date: Mon, 25 Nov 2019 13:18:51 +0000 (+0200) Subject: lib: connection: Rename unix_peer_known to unix_peer_checked X-Git-Tag: 2.3.9~8 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=e4dc0785891faf319ccbd49a9c5f3c6236ba48ea;p=thirdparty%2Fdovecot%2Fcore.git lib: connection: Rename unix_peer_known to unix_peer_checked This reflects more correctly what it means. --- diff --git a/src/lib/connection.c b/src/lib/connection.c index d1c222a487..91310d9c7a 100644 --- a/src/lib/connection.c +++ b/src/lib/connection.c @@ -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); diff --git a/src/lib/connection.h b/src/lib/connection.h index 45f4c8e926..5b1493b43a 100644 --- a/src/lib/connection.h +++ b/src/lib/connection.h @@ -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; };