28f7995610134e3d3be1d493d4ce6328b204182b |
|
21-Oct-2016 |
Timo Sirainen <timo.sirainen@dovecot.fi> |
imap-hibernate: Fix "DONE" handling.
1. If only "DONE\r\n" was sent, it randomly failed with BAD because of
out-of-bounds buffer read.
2. If "DONE\r\n" was followed by a command tag but no space afterwards, we
kept waiting for the input to continue. But since the DONE was already sent,
we should break the IDLE already at that point without any further waiting. |