projects
/
platform
/
upstream
/
libwebsockets.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4cfc42c
)
C89 tweaks as per #348.
author
Andrew Canaday
<andrew.canaday@nytimes.com>
Sun, 29 Nov 2015 11:26:01 +0000
(19:26 +0800)
committer
Andy Green
<andy.green@linaro.org>
Sun, 29 Nov 2015 11:26:01 +0000
(19:26 +0800)
lib/parsers.c
patch
|
blob
|
history
diff --git
a/lib/parsers.c
b/lib/parsers.c
index
663b9d3
..
ef9c3e7
100644
(file)
--- a/
lib/parsers.c
+++ b/
lib/parsers.c
@@
-180,12
+180,13
@@
static signed char char_to_hex(const char c)
static int issue_char(struct libwebsocket *wsi, unsigned char c)
{
+ unsigned short frag_len;
if (wsi->u.hdr.ah->pos == sizeof(wsi->u.hdr.ah->data)) {
lwsl_warn("excessive header content\n");
return -1;
}
-
unsigned short
frag_len = \
+ frag_len = \
wsi->u.hdr.ah->frags[wsi->u.hdr.ah->next_frag_index].len;
/* If we haven't hit the token limit, just copy the character into
* the header: */