From cf5f33a6c96ca2799bf5eee257ac51666f92c72e Mon Sep 17 00:00:00 2001
From: Per Cederqvist <ceder@lysator.liu.se>
Date: Fri, 14 Jun 1991 22:10:40 +0000
Subject: [PATCH] fast_access_perm() now returns 'error' if the conference does
 not exist.

---
 src/server/membership.c | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/src/server/membership.c b/src/server/membership.c
index 8a682111f..4a06da401 100644
--- a/src/server/membership.c
+++ b/src/server/membership.c
@@ -612,7 +612,10 @@ Access
 fast_access_perm(Conf_no victim)
 {
     Conf_type conf_type;
-    
+
+    if ( !cached_conf_exists(victim) )
+	return error;
+
     if ( ACTPERS != 0 && (ENA(admin, 2) || ENA(wheel,8) || ACTPERS == victim) )
     	return unlimited;
 
-- 
GitLab