1
0
Fork 0
mirror of https://github.com/warmcat/libwebsockets.git synced 2025-03-09 00:00:04 +01:00

sspc: proxy: coverity: handle unknown metadata name

This commit is contained in:
Andy Green 2021-11-08 10:13:34 +00:00
parent 81b481ef2f
commit a335958923

View file

@ -714,6 +714,18 @@ payload_ff:
case RPAR_METADATA_VALUE:
/* both client and proxy */
if (!par->ssmd) {
/* we don't recognize the name */
cp++;
if (--par->rem)
break;
par->ps = RPAR_TYPE;
break;
}
((uint8_t *)(par->ssmd->value__may_own_heap))[par->ctr++] = *cp++;
if (--par->rem)