0
0
Fork 0
mirror of https://github.com/matrix-construct/construct synced 2024-10-01 05:08:59 +02: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)
};
char state_key_buf[rfc1035::NAME_BUFSIZE * 2];
char state_key_buf[m::event::STATE_KEY_MAX_SIZE];
const string_view &state_key
{
opts.qtype == 33?
@ -114,7 +114,7 @@ ircd::net::dns::cache::put(const hostport &hp,
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
{
opts.qtype == 33?