Check the return value of SSL_connect() for failure.

Signed-off-by: Thiago Farina <tfarina@chromium.org>