mirror of
https://git.kore.io/kore.git
synced 2024-11-11 04:39:00 +01:00
Check if req is NULL before dereferencing it.
This commit is contained in:
parent
52a0764812
commit
c206f3be89
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user