From: Timo Sirainen Date: Mon, 20 Jan 2020 14:15:41 +0000 (+0200) Subject: lib-fs: Fix event leak when EAGAIN error is logged via fs_set_error() X-Git-Tag: 2.3.10~141 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=a333079a815583c478c943a68ccb32d27b350797;p=thirdparty%2Fdovecot%2Fcore.git lib-fs: Fix event leak when EAGAIN error is logged via fs_set_error() Broken by f7aafd832151dd34e28cb1bba214accf9b15d908 --- diff --git a/src/lib-fs/fs-api.c b/src/lib-fs/fs-api.c index a68e3f0e26..dd9c3daa7b 100644 --- a/src/lib-fs/fs-api.c +++ b/src/lib-fs/fs-api.c @@ -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) {