mirror of
https://github.com/warmcat/libwebsockets.git
synced 2025-03-09 00:00:04 +01:00
ss: deal with missing handle metadata
This commit is contained in:
parent
b156268521
commit
d85bfb2816
1 changed files with 7 additions and 0 deletions
|
@ -423,7 +423,14 @@ lws_ss_exp_cb_metadata(void *priv, const char *name, char *out, size_t *pos,
|
|||
return LSTRX_FATAL_NAME_UNKNOWN;
|
||||
}
|
||||
|
||||
if (!hmd)
|
||||
return LSTRX_FILLED_OUT;
|
||||
|
||||
replace = hmd->value__may_own_heap;
|
||||
|
||||
if (!replace)
|
||||
return LSTRX_FILLED_OUT;
|
||||
|
||||
total = hmd->length;
|
||||
|
||||
budget = olen - *pos;
|
||||
|
|
Loading…
Add table
Reference in a new issue