Mercurial > dovecot > core-2.2
changeset 22573:0813fee4d105
director: Fix potential panic when director is alone
If director is alone and it can't connect to other directors, it might crash
with:
Panic: file director.c: line 318 (director_set_ring_synced): assertion failed: (!dir->ring_synced)
author | Timo Sirainen <timo.sirainen@dovecot.fi> |
---|---|
date | Thu, 05 Oct 2017 16:12:38 +0300 |
parents | 4a0792a03f5a |
children | 7829235b8ac6 |
files | src/director/director.c |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/src/director/director.c Thu Oct 05 11:51:23 2017 +0300 +++ b/src/director/director.c Thu Oct 05 16:12:38 2017 +0300 @@ -276,7 +276,7 @@ dir->ring_min_version = DIRECTOR_VERSION_MINOR; if (!dir->ring_handshaked) director_set_ring_handshaked(dir); - else + else if (!dir->ring_synced) director_set_ring_synced(dir); }