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 19:59:15 +0000 (21:59 +0200)
commite67887343c433cc35bc26ad6a9392588f427e746
treec8c9bccfdbeff08bd774eb15f430d129237bac46
parentf64ac93b92faeb2fd8f9c411168e04e8501bd6e8
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