Mercurial > dovecot > core-2.2
changeset 22653:3ada7f87de9f
director: Log an error if login process sends unexpected reply to KICK* commands
author | Timo Sirainen <timo.sirainen@dovecot.fi> |
---|---|
date | Mon, 06 Nov 2017 10:57:03 +0200 |
parents | 09523ad05bef |
children | abe554f10805 |
files | src/director/director.c |
diffstat | 1 files changed, 8 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/src/director/director.c Sun Nov 05 22:53:23 2017 +0200 +++ b/src/director/director.c Mon Nov 06 10:57:03 2017 +0200 @@ -971,6 +971,7 @@ switch (state) { case IPC_CLIENT_CMD_STATE_REPLY: /* shouldn't get here. the command reply isn't finished yet. */ + i_error("login process sent unexpected reply to kick: %s", data); return; case IPC_CLIENT_CMD_STATE_OK: break; @@ -1141,10 +1142,14 @@ } static void -director_kick_user_callback(enum ipc_client_cmd_state state ATTR_UNUSED, - const char *data ATTR_UNUSED, - void *context ATTR_UNUSED) +director_kick_user_callback(enum ipc_client_cmd_state state, + const char *data, void *context ATTR_UNUSED) { + if (state == IPC_CLIENT_CMD_STATE_REPLY) { + /* shouldn't get here. the command reply isn't finished yet. */ + i_error("login process sent unexpected reply to kick: %s", data); + } + } void director_kick_user(struct director *dir, struct director_host *src,