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
ad3aa5339e
commit
632ffa1eca
1 changed files with 7 additions and 0 deletions
|
@ -424,7 +424,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