From 2b31a7cb9ba76c63dbbf4539fb537e83606331ed Mon Sep 17 00:00:00 2001 From: Antonio SJ Musumeci Date: Fri, 15 Mar 2024 07:39:46 -0500 Subject: [PATCH] policy_cache.hpp --- src/policy_cache.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/policy_cache.hpp b/src/policy_cache.hpp index 484daf4b..433e54a4 100644 --- a/src/policy_cache.hpp +++ b/src/policy_cache.hpp @@ -64,7 +64,7 @@ public: uint64_t hash; STRPOOL_U64 token; - key = key_; + key = std::string(key_); hash = wyhash(key_,keylen_,0xdeadbeef,_wyp); _cache.insert_or_assign(hash,val_);