1
0
Fork 0
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:
Andy Green 2021-11-08 10:05:12 +00:00
parent f8d74d058e
commit 3709d80f3d

View file

@ -684,6 +684,9 @@ 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,