Bad pointer usage in chanserv OnDelCore()

Bug #1473231 reported by LaMont Jones
This bug affects 1 person
Affects Status Importance Assigned to Milestone
anope (Ubuntu)

Bug Description

When nickserv drops a user registration and ChanServCore::OnDelCore is called, the pointer handling is wrong and sometimes results in a SIGSEGV.

The attached patch fixes it.

Tags: patch
Revision history for this message
LaMont Jones (lamont) wrote :
Revision history for this message
LaMont Jones (lamont) wrote :

The issue only occurs when we have a non-trivial list of channels for which the user is the founder, and there is no specified successor founder. The following reproduces the issue handily:

as non-oper nick lj_test:
/msg nickserv register foobaz <email address hidden>
/join #chan1
/join #chan2
/msg chanserv register #chan1 asdadfa

and then as an oper:
/msg nickserv drop lj_test

With the suggested change, anope stays running, and the nick is fully dropped.

tags: added: patch
Revision history for this message
Logan Rosen (logan) wrote :

Could you please forward this patch to Anope's upstream bug tracker at so that we can get an upstream perspective? Thanks!

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers