From: Stephan Bosch Date: Fri, 1 Oct 2021 22:25:50 +0000 (+0200) Subject: lib: connection - Add debug message for when property label (peer address) changes. X-Git-Tag: 2.3.18~247 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=66d9b71ad466f96a8c48773c705e81d10a58c11f;p=thirdparty%2Fdovecot%2Fcore.git lib: connection - Add debug message for when property label (peer address) changes. --- diff --git a/src/lib/connection.c b/src/lib/connection.c index e73eabe085..dae5c92340 100644 --- a/src/lib/connection.c +++ b/src/lib/connection.c @@ -257,6 +257,12 @@ static void connection_update_property_label(struct connection *conn) conn->remote_port); } + i_assert(label != NULL || conn->property_label == NULL); + if (conn->property_label != NULL && + strcmp(conn->property_label, label) != 0) { + e_debug(conn->event, "Updated peer address to %s", label); + } + i_free(conn->property_label); conn->property_label = i_strdup(label); }