From 106c88737f649876982c918d814b240c008d1687 Mon Sep 17 00:00:00 2001 From: Jilles Tjoelker Date: Sun, 18 Jan 2009 01:39:41 +0100 Subject: [PATCH] If a privset is removed from ircd.conf, wipe its privs. (Privsets continue to exist as long as they are referenced.) --- src/privilege.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/privilege.c b/src/privilege.c index e1f250761..6b2c8b703 100644 --- a/src/privilege.c +++ b/src/privilege.c @@ -173,6 +173,8 @@ privilegeset_mark_all_illegal(void) continue; set->status |= CONF_ILLEGAL; + rb_free(set->privs); + set->privs = rb_strdup(""); /* but do not free it yet */ } }