aboutsummaryrefslogtreecommitdiff
path: root/src/lib/protocols/http.c
diff options
context:
space:
mode:
authorLuca Deri <deri@ntop.org>2019-12-08 23:47:25 +0100
committerLuca Deri <deri@ntop.org>2019-12-08 23:47:25 +0100
commit11401edfe7c4c9f9728c64172a48c2ea4401c750 (patch)
treed4b97ba508c1248d8555a86cd86462cfaea11902 /src/lib/protocols/http.c
parent239842b821763a2afc62d859a186f673ba09b171 (diff)
parentd37b69ce9c9caa979de7c511e33cb7d1cf5fbc91 (diff)
Merge branch 'dev' of https://github.com/ntop/nDPI into dev
Diffstat (limited to 'src/lib/protocols/http.c')
-rw-r--r--src/lib/protocols/http.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/protocols/http.c b/src/lib/protocols/http.c
index 4382879d0..70ca0c389 100644
--- a/src/lib/protocols/http.c
+++ b/src/lib/protocols/http.c
@@ -484,7 +484,7 @@ static u_int16_t http_request_url_offset(struct ndpi_detection_module_struct *nd
packet->payload_packet_len);
/* Check first char */
- if(!strchr(http_fs,packet->payload[0])) return 0;
+ if(!packet->payload_packet_len || !strchr(http_fs,packet->payload[0])) return 0;
/**
FIRST PAYLOAD PACKET FROM CLIENT
**/