diff options
author | Luca Deri <deri@ntop.org> | 2020-06-17 19:46:37 +0200 |
---|---|---|
committer | Luca Deri <deri@ntop.org> | 2020-06-17 19:46:37 +0200 |
commit | 46d96e7f32a799ae57400d82e4c485e4ef9771ab (patch) | |
tree | 9ac0add675d61a6653e5b59414e3672f1773e94f /src/lib/protocols/http.c | |
parent | ffd20ebdf94beffc1cb8ec56896a86e28907702c (diff) |
Added checks for DGA detection
Diffstat (limited to 'src/lib/protocols/http.c')
-rw-r--r-- | src/lib/protocols/http.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/protocols/http.c b/src/lib/protocols/http.c index a896c6214..7d54d1470 100644 --- a/src/lib/protocols/http.c +++ b/src/lib/protocols/http.c @@ -450,7 +450,7 @@ static void check_content_type_and_change_protocol(struct ndpi_detection_module_ flow->host_server_name[len] = '\0'; flow->extra_packets_func = NULL; /* We're good now */ - ndpi_check_dga_name(ndpi_struct, flow, (char*)flow->host_server_name); + if(len > 0) ndpi_check_dga_name(ndpi_struct, flow, (char*)flow->host_server_name); flow->server_id = flow->dst; if(packet->forwarded_line.ptr) { |