1
0
Fork 0
mirror of https://github.com/warmcat/libwebsockets.git synced 2025-03-09 00:00:04 +01:00

cgi: check for stdout failed or gone away

This commit is contained in:
Andy Green 2019-10-05 11:13:37 +01:00
parent a83c6439e6
commit 761207442d

View file

@ -316,7 +316,7 @@ lws_callback_http_dummy(struct lws *wsi, enum lws_callback_reasons reason,
lwsl_debug("AUX_BF__CGI forcing close\n");
return -1;
}
if (!n)
if (!n && wsi->http.cgi && wsi->http.cgi->stdwsi[LWS_STDOUT])
lws_rx_flow_control(
wsi->http.cgi->stdwsi[LWS_STDOUT], 1);