mirror of
https://github.com/vel21ripn/nDPI.git
synced 2026-05-12 21:13:09 +00:00
Fixed SEGV with undepcified protos
This commit is contained in:
parent
659649d2e9
commit
49ed41142c
1 changed files with 1 additions and 1 deletions
|
|
@ -2503,7 +2503,7 @@ int ndpi_handle_rule(struct ndpi_detection_module_struct *ndpi_mod,
|
|||
}
|
||||
|
||||
for(i=0, def = NULL; i<(int)ndpi_mod->ndpi_num_supported_protocols; i++) {
|
||||
if(strcasecmp(ndpi_mod->proto_defaults[i].protoName, proto) == 0) {
|
||||
if(ndpi_mod->proto_defaults[i].protoName && strcasecmp(ndpi_mod->proto_defaults[i].protoName, proto) == 0) {
|
||||
def = &ndpi_mod->proto_defaults[i];
|
||||
subprotocol_id = i;
|
||||
break;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue