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:
parent
81b481ef2f
commit
a335958923
1 changed files with 12 additions and 0 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Reference in a new issue