From d9af1f18cc5bd862e9a52d4cae2ebafc98353aba Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ren=C3=A9=20Canna=C3=B2?= Date: Wed, 9 Jan 2019 00:04:15 +1100 Subject: [PATCH] Fixed datatype for ClickHouse_Authentication::exists() --- lib/ClickHouse_Authentication.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/ClickHouse_Authentication.cpp b/lib/ClickHouse_Authentication.cpp index e127ce72c..057ed37ba 100644 --- a/lib/ClickHouse_Authentication.cpp +++ b/lib/ClickHouse_Authentication.cpp @@ -361,9 +361,9 @@ bool ClickHouse_Authentication::exists(char * username) { myhash.Update(username,strlen(username)); myhash.Final(&hash1,&hash2); - creds_group_t &cg = creds_frontends ; + ch_creds_group_t &cg = creds_frontends ; pthread_rwlock_rdlock(&cg.lock); - std::map::iterator lookup; + std::map::iterator lookup; lookup = cg.bt_map.find(hash1); if (lookup != cg.bt_map.end()) { ret = true;