Mercurial > dovecot > core-2.2
changeset 21430:1ce6c0be2213
director: Add assert to make sure USER-MOVE doesn't change tag
author | Timo Sirainen <timo.sirainen@dovecot.fi> |
---|---|
date | Fri, 20 Jan 2017 15:52:43 +0200 |
parents | 64625a782e87 |
children | 784f3ca6ebfb |
files | src/director/director.c |
diffstat | 1 files changed, 4 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/src/director/director.c Tue Dec 27 09:45:58 2016 +0200 +++ b/src/director/director.c Fri Jan 20 15:52:43 2017 +0200 @@ -1059,6 +1059,10 @@ /* user is already in this host */ return; } + /* user is looked up via the new host's tag, so if it's found + the old tag has to be the same. */ + i_assert(user->host->tag == host->tag); + user->host->user_count--; user->host = host; user->host->user_count++;