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