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

coverity: 62570: back up assert with unconditional NULL check

This commit is contained in:
Andy Green 2020-08-18 13:10:30 +01:00
parent 84a8ada0fd
commit 7ded454d2d

View file

@ -132,6 +132,8 @@ lws_ss_serialize_rx_payload(struct lws_dsh *dsh, const uint8_t *buf,
* on a non-default rideshare
*/
assert(rsp);
if (!rsp)
return 1;
l = strlen(rsp);
est += 1 + l;
} else