]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
lib: connection - Improve "wrong socket type" error message
authorTimo Sirainen <timo.sirainen@open-xchange.com>
Tue, 25 Jan 2022 17:15:16 +0000 (18:15 +0100)
committertimo.sirainen <timo.sirainen@open-xchange.com>
Sun, 13 Feb 2022 10:23:26 +0000 (10:23 +0000)
Especially "Connected to wrong socket type" was confusing when it was logged
for incoming connections.

src/lib/connection.c

index e540f6187120adc640e1328ae7c6e870906251f2..342605cc1f0c8e2d5d4baf485115c863edd72be0 100644 (file)
@@ -120,8 +120,8 @@ int connection_verify_version(struct connection *conn,
        i_assert(!conn->version_received);
 
        if (strcmp(service_name, conn->list->set.service_name_in) != 0) {
-               e_error(conn->event, "Connected to wrong socket type. "
-                       "We want '%s', but received '%s'",
+               e_error(conn->event, "Received wrong socket type. "
+                       "We want '%s', but received '%s' (wrong socket path?)",
                        conn->list->set.service_name_in, service_name);
                return -1;
        }