kore

Kore is a web application platform for writing scalable, concurrent web based processes in C or Python.
Commits | Files | Refs | README | LICENSE | git clone https://git.kore.io/kore.git

commit 5a5d9fd0c222ebf2adfff4afa138e744cc40e61e
parent 27d174694022bf6549d2e20deab3f1e7319a3544
Author: Joris Vink <joris@coders.se>
Date:   Wed, 18 Jul 2018 14:36:13 +0200

alloc space for nb->buf after taking ownership.

Diffstat:
src/http.c | 3++-
1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/http.c b/src/http.c @@ -713,7 +713,8 @@ http_header_recv(struct netbuf *nb) /* take full ownership of the buffer. */ req->headers = nb->buf; nb->buf = NULL; - nb->m_len = 0; + nb->s_off = 0; + nb->buf = kore_malloc(nb->m_len); for (i = 1; i < h; i++) { if (i == skip)