diff options
Diffstat (limited to 'src/lib/protocols')
-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 6a3df8e26..79110a531 100644 --- a/src/lib/protocols/http.c +++ b/src/lib/protocols/http.c @@ -656,7 +656,7 @@ static void check_content_type_and_change_protocol(struct ndpi_detection_module_ } } - if(flow->http_detected) { + if(flow->http_detected && packet->content_line.ptr && *(char*)packet->content_line.ptr) { ndpi_protocol_match_result ret_match; ndpi_match_content_subprotocol(ndpi_struct, flow, |