Commit eddf3652 authored by André Glüpker's avatar André Glüpker Committed by Simon Kelley

Fix bad cache-size calculation when hosts-file read fails.

parent a63b8b89
...@@ -18,6 +18,10 @@ version 2.76 ...@@ -18,6 +18,10 @@ version 2.76
that the same name is empty. Thanks to Edwin Török for that the same name is empty. Thanks to Edwin Török for
the patch. the patch.
Fix failure to correctly calculate cache-size when
reading a hosts-file fails. Thanks to André Glüpker
for the patch.
version 2.75 version 2.75
Fix reversion on 2.74 which caused 100% CPU use when a Fix reversion on 2.74 which caused 100% CPU use when a
......
...@@ -919,7 +919,7 @@ int read_hostsfile(char *filename, unsigned int index, int cache_size, struct cr ...@@ -919,7 +919,7 @@ int read_hostsfile(char *filename, unsigned int index, int cache_size, struct cr
if (!f) if (!f)
{ {
my_syslog(LOG_ERR, _("failed to load names from %s: %s"), filename, strerror(errno)); my_syslog(LOG_ERR, _("failed to load names from %s: %s"), filename, strerror(errno));
return 0; return cache_size;
} }
eatspace(f); eatspace(f);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment