commit e0fa7a94df85e976e4b84efbefc804f6c070624f
parent 8b019a71f547023de8b32674e457007215412aab
Author: Christian Grothoff <christian@grothoff.org>
Date: Tue, 8 May 2012 16:30:44 +0000
-LRN: don't leak errno from extract method
Diffstat:
1 file changed, 2 insertions(+), 0 deletions(-)
diff --git a/src/main/extractor.c b/src/main/extractor.c
@@ -2679,6 +2679,8 @@ ask_in_process_plugin (struct EXTRACTOR_PluginList *plugin, void *shm_ptr, EXTRA
{
plugin->shm_ptr = shm_ptr;
extract_reply = plugin->extract_method (plugin, proc, proc_cls);
+ /* Don't leak errno from the extract method */
+ errno = 0;
if (extract_reply == 1)
plugin->seek_request = -1;
}