correct error handling path in client handshake
correct error handling path in client handshake

After Vikas Gahlan

http://ml.libwebsockets.org/pipermail/libwebsockets/2015-October/001955.html

Signed-off-by: Andy Green <b471f5a494de34531c9e5a6e15abda71edd49104@linaro.org>
ralight/libwebsockets,pombredanne/libwebsockets,JoakimSoderberg/libwebsockets,sartura/libwebsockets,SoapyMan/libwebsockets,sartura/libwebsockets,JoakimSoderberg/libwebsockets,dumganhar/libwebsockets,SoapyMan/libwebsockets,SoapyMan/libwebsockets,sartura/libwebsockets,dumganhar/libwebsockets,dumganhar/libwebsockets,dumganhar/libwebsockets,ralight/libwebsockets,JoakimSoderberg/libwebsockets,SoapyMan/libwebsockets,sartura/libwebsockets,sartura/libwebsockets,ralight/libwebsockets,dumganhar/libwebsockets,ralight/libwebsockets,pombredanne/libwebsockets,pombredanne/libwebsockets,sartura/libwebsockets,ralight/libwebsockets,pombredanne/libwebsockets,SoapyMan/libwebsockets,JoakimSoderberg/libwebsockets,sartura/libwebsockets