mirror of
https://github.com/warmcat/libwebsockets.git
synced 2025-03-09 00:00:04 +01:00
sspc: make sure NUL on metadata name
This commit is contained in:
parent
6eb793bbef
commit
15e6ac25a4
1 changed files with 1 additions and 0 deletions
|
@ -777,6 +777,7 @@ payload_ff:
|
|||
par->metadata_name[par->ctr++] = *cp++;
|
||||
if (par->ctr != par->slen)
|
||||
break;
|
||||
par->metadata_name[par->ctr] = '\0';
|
||||
par->ps = RPAR_METADATA_VALUE;
|
||||
|
||||
/* only non-client side can receive these */
|
||||
|
|
Loading…
Add table
Reference in a new issue