Handle invalid handshake data properly in the core
authorManuel Nickschas <sputnick@quassel-irc.org>
Sun, 24 Apr 2016 19:59:15 +0000 (21:59 +0200)
committerManuel Nickschas <sputnick@quassel-irc.org>
Sun, 24 Apr 2016 20:15:14 +0000 (22:15 +0200)
commitadbd7f6efa14b107ed722daa0b7963dd1238a681
treed8af5e913936428039ab99a379f04f4745d197a6
parentdb104c49b6c9b1e9a8a9e03b25688495c6f22193
Handle invalid handshake data properly in the core

Clients sending invalid handshake data could make the core crash
due to an unchecked pointer. This commit fixes this issue by having
the core close the socket if a peer could not be created.

Thanks to Bas Pape (Tucos) for finding this one!
src/common/peerfactory.cpp
src/core/coreauthhandler.cpp