X-Git-Url: https://git.exim.org/exim.git/blobdiff_plain/80fea873648ca2ab2e592999a336c59cf054ab55..5013d912e961203f2ab2d5f64be90255cda81b80:/src/src/regex.c diff --git a/src/src/regex.c b/src/src/regex.c index 233a56bce..9274f9095 100644 --- a/src/src/regex.c +++ b/src/src/regex.c @@ -148,7 +148,12 @@ if (!mime_stream) else { clearerr(mime_stream); - fseek(mime_stream, f_pos, SEEK_SET); + if (fseek(mime_stream, f_pos, SEEK_SET) == -1) + { + log_write(0, LOG_MAIN|LOG_PANIC, + "regex acl condition: mime_stream: %s", strerror(errno)); + clearerr(mime_stream); + } } return ret;