index
:
ndpi-daemon.git
Tiny nDPI based deep packet inspection daemons / toolkit.
log msg
author
committer
range
add/PF_RING
add/apple-bsd-port
add/config-file-support
add/event-io-abstraction
add/nDPId-UDP-endpoint
add/tls-proxy-support
add/tunnel-decoding
add/udp-aes256-gcm
main
ndpi-example-proposal
tmp
summary
refs
log
tree
commit
diff
diff options
context:
1
2
3
4
5
6
7
8
9
10
15
20
25
30
35
40
space:
include
ignore
mode:
unified
ssdiff
stat only
Diffstat
-rw-r--r--
jsmn.c
3
1 files changed, 3 insertions, 0 deletions
diff --git a/jsmn.c b/jsmn.c
index e7765eb1d..da9bf217c 100644
--- a/
jsmn.c
+++ b/
jsmn.c
@@ -198,6 +198,9 @@ int jsmn_parse(jsmn_parser *parser, const char *js, size_t len,
break;
}
if (token->parent == -1) {
+ if(token->type != type) {
+ return JSMN_ERROR_INVAL;
+ }
break;
}
token = &tokens[token->parent];