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:41:53 +00:00
parent 11ba0b713b
commit b415f59bd2

View file

@ -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,