]> arthur.barton.de Git - ngircd-alex.git/commit
channel: always reject zero-length channel key
authorFlorian Westphal <fw@strlen.de>
Mon, 28 Feb 2011 20:09:47 +0000 (21:09 +0100)
committerFlorian Westphal <fw@strlen.de>
Mon, 28 Feb 2011 22:28:24 +0000 (23:28 +0100)
commit5417a72536954927371d597e9a4e0453e70620e3
treea7034db84c64a2ea474070d621218d68afb89e75
parent94e4562c1c732f7bf67bed2f77cc7b3b0aeaeafe
channel: always reject zero-length channel key

previously, any client could join in this configuration:

[Channel]
  Name = #test
  Modes = tnk
  KeyFile = /tmp/foobar

fix this by checking for zero-length key before comparing
key to channel key.
src/ngircd/channel.c