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 c206f3be8956a4c0f74e6797db36cefe1f66a070
parent 52a0764812dd530014455c6da70904cad7236553
Author: Joris Vink <joris@coders.se>
Date:   Wed, 16 Apr 2014 22:15:22 +0200

Check if req is NULL before dereferencing it.

Diffstat:
src/spdy.c | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/spdy.c b/src/spdy.c @@ -636,7 +636,7 @@ spdy_data_frame_recv(struct netbuf *nb) } req = (struct http_request *)s->httpreq; - if (req->method != HTTP_METHOD_POST || req == NULL) { + if (req == NULL || req->method != HTTP_METHOD_POST) { kore_debug("data frame for non post received"); /* stream error */ return (KORE_RESULT_ERROR);