diff options
author | Campus <campus@ntop.org> | 2017-05-02 16:50:25 +0200 |
---|---|---|
committer | Campus <campus@ntop.org> | 2017-05-02 16:50:25 +0200 |
commit | 1af3d571d93c7baa8fd40322df775e98df01b402 (patch) | |
tree | 2d9bcc19a8218a02f5cad07bb0f9ab7a6e8e7890 /src | |
parent | 442adce51db0b3fd9fdfe9f80df9e3cb767414c1 (diff) |
fix for https://github.com/ntop/nDPI/issues/371
Diffstat (limited to 'src')
-rw-r--r-- | src/lib/third_party/src/ndpi_patricia.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/lib/third_party/src/ndpi_patricia.c b/src/lib/third_party/src/ndpi_patricia.c index 13ed71371..b37fffa97 100644 --- a/src/lib/third_party/src/ndpi_patricia.c +++ b/src/lib/third_party/src/ndpi_patricia.c @@ -769,6 +769,7 @@ ndpi_patricia_lookup (patricia_tree_t *patricia, prefix_t *prefix) } new_node = (patricia_node_t*)ndpi_calloc(1, sizeof *new_node); + if(!new_node) return NULL; new_node->bit = prefix->bitlen; new_node->prefix = ndpi_Ref_Prefix (prefix); new_node->parent = NULL; |