diff options
author | Luca Deri <deri@ntop.org> | 2016-12-05 13:58:43 +0100 |
---|---|---|
committer | Luca Deri <deri@ntop.org> | 2016-12-05 13:58:43 +0100 |
commit | 22ee4392158fcbd94b4f4111832e28503b07e615 (patch) | |
tree | 98f4d0486267aacd641b65d94ad2bea0e729c9d2 /src/lib/third_party | |
parent | 582f5e0f72ec1c2afe0a99333f5b9941f22de659 (diff) |
Added memory check in patricia tree
Improved AFP dissection
Updated DHCP test results
Diffstat (limited to 'src/lib/third_party')
-rw-r--r-- | src/lib/third_party/src/ndpi_patricia.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/lib/third_party/src/ndpi_patricia.c b/src/lib/third_party/src/ndpi_patricia.c index aa750bebc..c9c052314 100644 --- a/src/lib/third_party/src/ndpi_patricia.c +++ b/src/lib/third_party/src/ndpi_patricia.c @@ -821,6 +821,8 @@ ndpi_patricia_lookup (patricia_tree_t *patricia, prefix_t *prefix) } else { glue = (patricia_node_t*)ndpi_calloc(1, sizeof *glue); + + if(!glue) return(NULL); glue->bit = differ_bit; glue->prefix = NULL; glue->parent = node->parent; |