Added memory check in patricia tree

Improved AFP dissection
Updated DHCP test results
This commit is contained in:
Luca Deri
2016-12-05 13:58:43 +01:00
parent 582f5e0f72
commit 22ee439215
5 changed files with 49 additions and 35 deletions
+2
View File
@@ -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;