erlang/otp — pull request #339 by stolen (2014-04-19 22:36:52+00:00)
Title: ssl: Fix crash on garbage during handshake

If a client sends some garbage in ssl record instead of
valid fragment, server crashes with function_clause while
receiving next record from client.
This patch makes server raise handshake failure instead of
crashing and exposing internal state to user code.