]> arthur.barton.de Git - ngircd-alex.git/commit
Don't access already freed memory in IRC_KILL()
authorAlexander Barton <alex@barton.de>
Sat, 22 May 2010 15:03:54 +0000 (17:03 +0200)
committerAlexander Barton <alex@barton.de>
Sat, 22 May 2010 15:03:54 +0000 (17:03 +0200)
commit55190f2d3ddf9b4bd43b0555df784c95eed82390
tree643187397ccdeaa5f5f0ec7ae120a161c82b604b
parent6dc80bd195ad0760bb560177d6f91c86b7698758
Don't access already freed memory in IRC_KILL()

It is not possible to call Conn_Close() after Client_Destroy() has been
called, because Conn_Close wants to access the CLIENT structure which
then has been freed already.

Fix IRC_KILL to use Conn_Close() for local clients and Client_Destroy()
for remote clients only (and never both).
src/ngircd/irc.c