Skip to content

Commit

Permalink
Don't set the oper flags on client
Browse files Browse the repository at this point in the history
The oper_conf flags are a different set of flag
bits than the client flags. The oper flags are
hardcoded to have ENCRYPTED set which is the same
flag as PINGSENT on the client struct. This can
cause a client to timeout if the last thing it
does is oper up.
  • Loading branch information
glguy committed Jan 29, 2025
1 parent 4e89f66 commit 1db6ea5
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion ircd/s_user.c
Original file line number Diff line number Diff line change
Expand Up @@ -1494,7 +1494,6 @@ oper_up(struct Client *source_p, struct oper_conf *oper_p)
SetExtendChans(source_p);
SetExemptKline(source_p);

source_p->flags |= oper_p->flags;
source_p->user->opername = rb_strdup(oper_p->name);
source_p->user->privset = privilegeset_ref(oper_p->privset);

Expand Down

0 comments on commit 1db6ea5

Please sign in to comment.