Changeset

3455:1ef702d30b6b

mod_cache_c2s_caps: Add a missing return when the hash is wrong.
author Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
date Tue, 22 Jan 2019 15:38:52 +0100
parents 3454:c424bfb927b1
children 3456:b85622b577ad
files mod_cache_c2s_caps/mod_cache_c2s_caps.lua
diffstat 1 files changed, 1 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/mod_cache_c2s_caps/mod_cache_c2s_caps.lua	Tue Jan 22 15:38:09 2019 +0100
+++ b/mod_cache_c2s_caps/mod_cache_c2s_caps.lua	Tue Jan 22 15:38:52 2019 +0100
@@ -36,6 +36,7 @@
 	local hash = calculate_hash(query)
 	if ver ~= hash then
 		origin.log("debug", "Wrong hash for disco#info: %s ~= %s", ver, hash);
+		return;
 	end
 
 	origin.caps_cache = query;