diff options
author | Andy Green <andy@warmcat.com> | 2021-11-08 10:41:53 +0000 |
---|---|---|
committer | Andy Green <andy@warmcat.com> | 2021-11-08 11:05:28 +0000 |
commit | b415f59bd27975e8e781526a8c5ee846f37fcb66 (patch) | |
tree | 6293f8060888b2d5de704ff3da060fd0c73f33aa | |
parent | 11ba0b713b83621f65ca859d2798d8d603bbb65b (diff) | |
download | libwebsockets-b415f59bd27975e8e781526a8c5ee846f37fcb66.tar.gz |
ss-deserialize: add pointless h NULL check
h cannot be NULL since it's set by address offset earlier.
Help coverity understand that.
-rw-r--r-- | lib/secure-streams/secure-streams-serialize.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/secure-streams/secure-streams-serialize.c b/lib/secure-streams/secure-streams-serialize.c index 09969fea..2202e029 100644 --- a/lib/secure-streams/secure-streams-serialize.c +++ b/lib/secure-streams/secure-streams-serialize.c @@ -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, |