From 687ec8f7663ea603b8c7ea81750c71aa1a11f32b Mon Sep 17 00:00:00 2001 From: Ed Kellett Date: Thu, 16 Jul 2020 17:50:27 +0100 Subject: [PATCH] m_grant: zero-initialize struct oper_conf bug noticed by @xnrand --- modules/m_grant.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/modules/m_grant.c b/modules/m_grant.c index 1c300a8b..8ed1386b 100644 --- a/modules/m_grant.c +++ b/modules/m_grant.c @@ -150,10 +150,8 @@ static int do_grant(struct Client *source_p, struct Client *target_p, const char if (dooper) { - struct oper_conf oper; + struct oper_conf oper = {0}; oper.name = ""; - oper.umodes = 0; - oper.snomask = 0; oper.privset = privset; oper_up(target_p, &oper);