0
0
Fork 0
mirror of https://github.com/matrix-construct/construct synced 2024-11-17 15:30:52 +01:00

modules/s_dns: Ensure cache::put() sends something useful to the cache room.

This commit is contained in:
Jason Volk 2019-03-25 19:07:37 -07:00
parent 0f184cd449
commit 7d70351f0b

View file

@ -534,6 +534,11 @@ ircd::net::dns::cache::put(const hostport &hp,
}
}
// When the array has a zero value count we didn't know how to cache
// any of these records; don't send anything to the cache room.
if(!array.vc)
return false;
array.~array();
content.~object();
send(room_id, m::me, type, state_key, json::object{out.completed()});