]> git.tue.mpg.de Git - paraslash.git/commit
handle_connect(): Don't send anything to non-authorized clients.
authorAndre Noll <maan@systemlinux.org>
Thu, 3 Mar 2011 16:39:11 +0000 (17:39 +0100)
committerAndre Noll <maan@systemlinux.org>
Thu, 3 Mar 2011 16:39:11 +0000 (17:39 +0100)
commitc0465935db72d69c90a2556ff64c64f7eeb8ec48
treeea7a086804c7a0a9402ffd2e7aa8d5d9f336fcd2
parent02fdd9b000a873262c6abe226ac8c2dc8b616693
handle_connect(): Don't send anything to non-authorized clients.

Currently, if we don't receive a valid authentication request, we send
back an RC4-encrypted error message to the client, which is kind of
pointless since the RC4 keys are not set up at this point.

Of course we could send an unencryted error message in this case,
but in since the peer could be anything, it seems safer to just close
the connection.
command.c