git://git.exim.org
/
users
/
jgh
/
exim.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
tidying: coverity issues
[users/jgh/exim.git]
/
src
/
src
/
regex.c
diff --git
a/src/src/regex.c
b/src/src/regex.c
index 3852ad8c52a68427651bd4b9708cb54b03aab6ff..b3ef31c3eac812982c84dcf8f02f847bb64b96d0 100644
(file)
--- a/
src/src/regex.c
+++ b/
src/src/regex.c
@@
-112,7
+112,12
@@
if (!mime_stream) /* We are in the DATA ACL */
}
else
{
- f_pos = ftell(mime_stream);
+ if ((f_pos = ftell(mime_stream)) < 0)
+ {
+ log_write(0, LOG_MAIN|LOG_PANIC,
+ "regex acl condition: mime_stream: %s", strerror(errno));
+ return DEFER;
+ }
mbox_file = mime_stream;
}