aboutsummaryrefslogtreecommitdiff
path: root/src/lib/protocols/coap.c
diff options
context:
space:
mode:
authorLuca Deri <deri@ntop.org>2019-01-17 00:41:05 +0100
committerLuca Deri <deri@ntop.org>2019-01-17 00:41:05 +0100
commitd088a968a97c9c6a70357278c1f7a87567188328 (patch)
tree9e25c68d82e07cea234abfe49db820b2d21a3c41 /src/lib/protocols/coap.c
parentefef99cbadc8ddd6f6743e04d184fe240d6eb334 (diff)
parentf3b0878a37d252f0a9300eab7a7df28d64146211 (diff)
Merge branch 'dev' of https://github.com/ntop/nDPI into dev
Diffstat (limited to 'src/lib/protocols/coap.c')
-rw-r--r--src/lib/protocols/coap.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/protocols/coap.c b/src/lib/protocols/coap.c
index 5ac8cb80e..cf5061bbe 100644
--- a/src/lib/protocols/coap.c
+++ b/src/lib/protocols/coap.c
@@ -129,7 +129,7 @@ void ndpi_search_coap (struct ndpi_detection_module_struct *ndpi_struct,
// check values in header
if(h->version == 1) {
if(h->type == CON || h->type == NO_CON || h->type == ACK || h->type == RST ) {
- if(h->tkl == 0 || h->tkl < 8) {
+ if(h->tkl < 8) {
if((h->code >= 0 && h->code <= 5) || (h->code >= 65 && h->code <= 69) ||
(h->code >= 128 && h->code <= 134) || (h->code >= 140 && h->code <= 143) ||
(h->code >= 160 && h->code <= 165)) {