Merge pull request #352 from edk0/grant-oper-data

m_grant: zero-initialize struct oper_conf
This commit is contained in:
Aaron Jones 2020-07-27 17:13:33 +00:00 committed by GitHub
commit ad7ecd5cbb
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -150,10 +150,8 @@ static int do_grant(struct Client *source_p, struct Client *target_p, const char
if (dooper) if (dooper)
{ {
struct oper_conf oper; struct oper_conf oper = {0};
oper.name = "<grant>"; oper.name = "<grant>";
oper.umodes = 0;
oper.snomask = 0;
oper.privset = privset; oper.privset = privset;
oper_up(target_p, &oper); oper_up(target_p, &oper);