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

COVA10653: check for zalloc fail

This commit is contained in:
Andy Green 2019-07-13 11:51:20 -07:00
parent d14dcff076
commit 0709167759

View file

@ -82,6 +82,8 @@ _lws_plat_service_tsi(struct lws_context *context, int timeout_ms, int tsi)
if (!pt->service_tid_detected) {
struct lws *_lws = lws_zalloc(sizeof(*_lws), "tid probe");
if (!_lws)
return 1;
_lws->context = context;
pt->service_tid = context->vhost_list->protocols[0].callback(