]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
lib-fs: Fix event leak when EAGAIN error is logged via fs_set_error()
authorTimo Sirainen <timo.sirainen@open-xchange.com>
Mon, 20 Jan 2020 14:15:41 +0000 (16:15 +0200)
committerTimo Sirainen <timo.sirainen@open-xchange.com>
Mon, 20 Jan 2020 14:16:34 +0000 (16:16 +0200)
Broken by f7aafd832151dd34e28cb1bba214accf9b15d908

src/lib-fs/fs-api.c

index a68e3f0e2623dca7b4eb8beddf34f0e84d711000..dd9c3daa7b87a25ca0387bc8270bf469e959bbf8 100644 (file)
@@ -564,6 +564,8 @@ fs_set_verror(struct event *event, const char *fmt, va_list args)
           messages. They tell nothing useful. */
        if (errno != EAGAIN)
                e_debug(event, "%s", new_error);
+       else
+               event_send_abort(event);
 
        /* free old error after strdup in case args point to the old error */
        if (file != NULL) {