]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
lib: connection - When receiving invalid VERSION line, log the line contents
authorTimo Sirainen <timo.sirainen@dovecot.fi>
Mon, 4 Dec 2017 18:39:05 +0000 (20:39 +0200)
committerTimo Sirainen <timo.sirainen@dovecot.fi>
Wed, 13 Dec 2017 11:22:17 +0000 (13:22 +0200)
src/lib/connection.c

index 7f84531381985d9c195cfc3928194e449c6f3cb8..f4e9951abf287719887d94c73e5df00550e3f6c4 100644 (file)
@@ -79,8 +79,8 @@ int connection_verify_version(struct connection *conn,
            strcmp(args[0], "VERSION") != 0 ||
            str_to_uint(args[2], &recv_major_version) < 0 ||
            str_to_uint(args[3], &conn->minor_version) < 0) {
-               i_error("%s didn't reply with a valid VERSION line",
-                       conn->name);
+               i_error("%s didn't reply with a valid VERSION line: %s",
+                       conn->name, t_strarray_join(args, "\t"));
                return -1;
        }