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:15:14 +01:00
parent d949b5529a
commit 3e013bf352

View file

@ -315,7 +315,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);