tidying
[exim.git] / src / src / regex.c
index 233a56bce36db73bf4ef5467ecc4ce7b9f03aeec..9274f9095bb83bd027129baa8872512d9699369b 100644 (file)
@@ -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;