0
0
Fork 0
mirror of https://github.com/matrix-construct/construct synced 2024-11-19 00:10:59 +01:00

ircd::net::dns::cache: Use better buffer size constant.

This commit is contained in:
Jason Volk 2020-04-22 03:48:16 -07:00
parent 0c1a54864c
commit 0a4bec978c

View file

@ -86,7 +86,7 @@ ircd::net::dns::cache::put(const hostport &hp,
make_type(type_buf, opts.qtype) make_type(type_buf, opts.qtype)
}; };
char state_key_buf[rfc1035::NAME_BUFSIZE * 2]; char state_key_buf[m::event::STATE_KEY_MAX_SIZE];
const string_view &state_key const string_view &state_key
{ {
opts.qtype == 33? opts.qtype == 33?
@ -114,7 +114,7 @@ ircd::net::dns::cache::put(const hostport &hp,
make_type(type_buf, type_code) make_type(type_buf, type_code)
}; };
char state_key_buf[rfc1035::NAME_BUFSIZE * 2]; char state_key_buf[m::event::STATE_KEY_MAX_SIZE];
const string_view &state_key const string_view &state_key
{ {
opts.qtype == 33? opts.qtype == 33?