]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
login-proxy: Fix logging reason when kicking non-logged in connections
authorTimo Sirainen <timo.sirainen@dovecot.fi>
Fri, 6 Jul 2018 10:12:51 +0000 (13:12 +0300)
committerVille Savolainen <ville.savolainen@dovecot.fi>
Tue, 13 Nov 2018 11:38:25 +0000 (13:38 +0200)
Use the same reason as for logged in connections.

src/login-common/login-proxy.c

index 645943258a6f93b210e7c11f41ba0d244ba4655e..5ca0cbe82575c614b3b72c64160eef18bf79aee6 100644 (file)
@@ -801,7 +801,7 @@ login_proxy_cmd_kick_full(struct ipc_cmd *cmd, const char *const *args,
                next = proxy->next;
 
                if (want_kick(proxy->client, args, key_idx)) {
-                       client_destroy(proxy->client, "Connection kicked");
+                       client_destroy(proxy->client, KILLED_BY_ADMIN_REASON);
                        count++;
                }
        }
@@ -893,7 +893,7 @@ login_proxy_cmd_kick_director_hash(struct ipc_cmd *cmd, const char *const *args)
                if (director_username_hash(proxy->client, &proxy_hash) &&
                    proxy_hash == hash &&
                    !net_ip_compare(&proxy->ip, &except_ip)) {
-                       client_destroy(proxy->client, "Connection kicked");
+                       client_destroy(proxy->client, KILLED_BY_DIRECTOR_REASON);
                        count++;
                }
        }