]> 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)
committerTimo Sirainen <timo.sirainen@dovecot.fi>
Sun, 8 Jul 2018 10:09:46 +0000 (10:09 +0000)
Use the same reason as for logged in connections.

src/login-common/login-proxy.c

index 4390196ab3605063fa81e6f20529a233a0e1b337..41dd113d23936e47eff0e0f9261c5c237f083236 100644 (file)
@@ -803,7 +803,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++;
                }
        }
@@ -895,7 +895,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++;
                }
        }