From 763bdee81b381dda8e676838f5f56c9fbb415ef9 Mon Sep 17 00:00:00 2001 From: Oleksandr Byelkin Date: Thu, 30 Sep 2021 10:14:28 +0200 Subject: MDEV-26637: (explicit length) ASAN: main.metadata and user_variables.basic MTR failures after MDEV-26572 Use explicit length for hash record length --- sql/hostname.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'sql/hostname.cc') diff --git a/sql/hostname.cc b/sql/hostname.cc index 7b07ab620a6..35948db3d23 100644 --- a/sql/hostname.cc +++ b/sql/hostname.cc @@ -191,7 +191,7 @@ Host_entry *hostname_cache_first() static inline Host_entry *hostname_cache_search(const char *ip_key) { - return hostname_cache->search((uchar *) ip_key, 0); + return hostname_cache->search((uchar *) ip_key, HOST_ENTRY_KEY_SIZE); } static void add_hostname_impl(const char *ip_key, const char *hostname, -- cgit v1.2.1