mirror of
https://github.com/warmcat/libwebsockets.git
synced 2025-03-09 00:00:04 +01:00
raw-proxy: avoid one char read too far with tokenizer
This commit is contained in:
parent
d41e0f8f7c
commit
93d23efc2c
1 changed files with 1 additions and 0 deletions
|
@ -193,6 +193,7 @@ callback_raw_proxy(struct lws *wsi, enum lws_callback_reasons reason,
|
|||
lws_tokenize_init(&ts, cp, LWS_TOKENIZE_F_DOT_NONTERM |
|
||||
LWS_TOKENIZE_F_MINUS_NONTERM |
|
||||
LWS_TOKENIZE_F_NO_FLOATS);
|
||||
ts.len = strlen(cp);
|
||||
|
||||
if (lws_tokenize(&ts) != LWS_TOKZE_TOKEN)
|
||||
goto bad_onward;
|
||||
|
|
Loading…
Add table
Reference in a new issue