m_grant: zero-initialize struct oper_conf
bug noticed by @xnrand
This commit is contained in:
parent
373ba193b8
commit
687ec8f766
1 changed files with 1 additions and 3 deletions
|
@ -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 = "<grant>";
|
||||
oper.umodes = 0;
|
||||
oper.snomask = 0;
|
||||
oper.privset = privset;
|
||||
|
||||
oper_up(target_p, &oper);
|
||||
|
|
Loading…
Reference in a new issue