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:
parent
d14dcff076
commit
0709167759
1 changed files with 2 additions and 0 deletions
|
@ -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(
|
||||
|
|
Loading…
Add table
Reference in a new issue