]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
lib: connection - Add debug message for when property label (peer address) changes.
authorStephan Bosch <stephan.bosch@open-xchange.com>
Fri, 1 Oct 2021 22:25:50 +0000 (00:25 +0200)
committertimo.sirainen <timo.sirainen@open-xchange.com>
Wed, 6 Oct 2021 21:58:03 +0000 (21:58 +0000)
src/lib/connection.c

index e73eabe0851a769ce0a43059e752ef0b49966205..dae5c92340fcc6e20af2bfebddb2f5d461dc9dda 100644 (file)
@@ -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);
 }