Mercurial > dovecot > core-2.2
changeset 21313:a309b9ab46e6
director: Fix USER-KICK and USER-KICK-ALT forwarding
The internal IPC command was prefixed, which caused the remote director
to reject the commands and disconnect:
director(...): Command proxy: Unknown command proxy
director(...): Remote sent invalid protocol data recently, waiting 57 secs before allowing further communication
author | Timo Sirainen <timo.sirainen@dovecot.fi> |
---|---|
date | Thu, 15 Dec 2016 19:03:39 +0200 |
parents | f9db0ad9001e |
children | 525afe75d978 |
files | src/director/director.c |
diffstat | 1 files changed, 2 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/src/director/director.c Thu Dec 15 19:02:56 2016 +0200 +++ b/src/director/director.c Thu Dec 15 19:03:39 2016 +0200 @@ -1096,6 +1096,7 @@ orig_src = dir->self_host; orig_src->last_seq++; } + str_truncate(cmd, 0); str_printfa(cmd, "USER-KICK\t%s\t%u\t%u\t", net_ip2addr(&orig_src->ip), orig_src->port, orig_src->last_seq); str_append_tabescaped(cmd, username); @@ -1120,6 +1121,7 @@ orig_src = dir->self_host; orig_src->last_seq++; } + str_truncate(cmd, 0); str_printfa(cmd, "USER-KICK-ALT\t%s\t%u\t%u\t", net_ip2addr(&orig_src->ip), orig_src->port, orig_src->last_seq); str_append_tabescaped(cmd, field);