From d5e424bcff5a58006268069ad44c50cc54a6817c Mon Sep 17 00:00:00 2001 From: Ed Kellett Date: Sat, 12 Jun 2021 02:18:40 +0100 Subject: [PATCH] msgbuf: use only relevant caps for the cache key --- ircd/msgbuf.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/ircd/msgbuf.c b/ircd/msgbuf.c index a801ff62..7040123a 100644 --- a/ircd/msgbuf.c +++ b/ircd/msgbuf.c @@ -443,6 +443,8 @@ msgbuf_cache_get(struct MsgBuf_cache *cache, unsigned int caps) struct MsgBuf_cache_entry *tail = NULL; int n = 0; + caps &= cache->overall_capmask; + while (entry != NULL) { if (entry->caps == caps) { /* Cache hit */