client: protect againt losing ah by lws_client_connect_2

This commit is contained in:
Andy Green 2016-11-15 17:00:35 +08:00
parent b40c0b8f1c
commit aba9ad0ea0

View file

@ -17,6 +17,12 @@ lws_client_connect_2(struct lws *wsi)
lwsl_client("%s\n", __func__);
if (!wsi->u.hdr.ah) {
lwsl_err("ah was NULL at cc2\n");
goto oom4;
}
/* proxy? */
if (wsi->vhost->http_proxy_port) {