From 0a4bec978cf5732a166f11c7dce7a00705acf419 Mon Sep 17 00:00:00 2001 From: Jason Volk Date: Wed, 22 Apr 2020 03:48:16 -0700 Subject: [PATCH] ircd::net::dns::cache: Use better buffer size constant. --- modules/net_dns_cache.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/net_dns_cache.cc b/modules/net_dns_cache.cc index 16ec54357..15cd0ff46 100644 --- a/modules/net_dns_cache.cc +++ b/modules/net_dns_cache.cc @@ -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?