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
1db45d17df
commit
f9fc45bd98
1 changed files with 15 additions and 1 deletions
|
@ -1156,8 +1156,22 @@ payload_ff:
|
|||
|
||||
if (client) {
|
||||
*par->rxmetaval++ = *cp++;
|
||||
} else
|
||||
} else {
|
||||
|
||||
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)
|
||||
break;
|
||||
|
|
Loading…
Add table
Reference in a new issue