mirror of
https://github.com/warmcat/libwebsockets.git
synced 2025-03-09 00:00:04 +01:00
ss-deserialize: add pointless h NULL check
h cannot be NULL since it's set by address offset earlier. Help coverity understand that.
This commit is contained in:
parent
11ba0b713b
commit
b415f59bd2
1 changed files with 5 additions and 0 deletions
|
@ -1074,6 +1074,11 @@ payload_ff:
|
|||
lwsl_err("%s: OOM\n", __func__);
|
||||
goto hangup;
|
||||
}
|
||||
|
||||
if (!h)
|
||||
/* coverity */
|
||||
goto hangup;
|
||||
|
||||
memset(md, 0, sizeof(lws_sspc_metadata_t));
|
||||
|
||||
lws_strncpy(md->name, par->metadata_name,
|
||||
|
|
Loading…
Add table
Reference in a new issue