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:
parent
0f184cd449
commit
7d70351f0b
1 changed files with 5 additions and 0 deletions
|
@ -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()});
|
||||
|
|
Loading…
Reference in a new issue