diff options
author | Luca Deri <deri@ntop.org> | 2020-05-29 21:51:51 +0200 |
---|---|---|
committer | Luca Deri <deri@ntop.org> | 2020-05-29 21:51:51 +0200 |
commit | cbb0b864a2146a32d81a02597b13240667a31a90 (patch) | |
tree | 0458b0f8c09c0969b97459ffbedbd1c3b9104bea /src/lib/protocols/http.c | |
parent | 61066fb106efa6d3d95b67e47b662de208b2b622 (diff) |
Minor cleanup
Diffstat (limited to 'src/lib/protocols/http.c')
-rw-r--r-- | src/lib/protocols/http.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/lib/protocols/http.c b/src/lib/protocols/http.c index 19b39242e..4cb1bd1fd 100644 --- a/src/lib/protocols/http.c +++ b/src/lib/protocols/http.c @@ -629,11 +629,12 @@ static int is_a_suspicious_header(const char* suspicious_headers[], struct ndpi_ static void ndpi_check_http_header(struct ndpi_detection_module_struct *ndpi_struct, struct ndpi_flow_struct *flow) { - int i; - + u_int32_t i; struct ndpi_packet_struct *packet = &flow->packet; - for(i=0; (i < packet->parsed_lines) && (packet->line[i].ptr != NULL) && (packet->line[i].len > 0); i++) { + for(i=0; (i < packet->parsed_lines) + && (packet->line[i].ptr != NULL) + && (packet->line[i].len > 0); i++) { switch(packet->line[i].ptr[0]){ case 'A': if(is_a_suspicious_header(suspicious_http_header_keys_A, packet->line[i])) { |