summary refs log tree commit diff
path: root/Makefile
diff options
context:
space:
mode:
authorNakidai <nakidai@disroot.org>2026-02-10 21:25:47 +0300
committerNakidai <nakidai@disroot.org>2026-02-10 21:25:47 +0300
commit204e8f8b2282a476d5f2b97abee0d81c119dd6bf (patch)
treea8d40a0c5250af4c5c7402d5157425279f68a9bd /Makefile
parent7d51a93567e7f1e70a0e7f006bdf8a248f94d1ee (diff)
downloadlibreircd-204e8f8b2282a476d5f2b97abee0d81c119dd6bf.tar.gz
libreircd-204e8f8b2282a476d5f2b97abee0d81c119dd6bf.zip
Fix channel_exit()ing user_remove()
When user user_remove() is called, that user quits all of the channels
it was belonging to. But since channel_exit() mutates chanels array, it
is incorrect to 1) compare with channels_c 2) access channels[i]. As a
fix, 1) channels_c is not being compared throughout the loop but is
assigned to i once, and then i decrements 2) channels is being accessed
only as channels[0]
Diffstat (limited to 'Makefile')
0 files changed, 0 insertions, 0 deletions