non ssl on ssl port fixes
non ssl on ssl port fixes

As found by 'github user 7'

https://github.com/warmcat/libwebsockets/issues/338

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