1
0
Fork 0
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:
Andy Green 2021-05-25 14:54:59 +01:00
parent b156268521
commit d85bfb2816

View file

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