aboutsummaryrefslogtreecommitdiff
path: root/src/lib/protocols
diff options
context:
space:
mode:
authorMichele Campus <fci1908@gmail.com>2017-08-21 14:08:45 +0200
committerGitHub <noreply@github.com>2017-08-21 14:08:45 +0200
commita1367a9d395da68a5069d7e368843d35de0c19b6 (patch)
tree667e923a23fe2351386d2e3ba0a904feaa279d23 /src/lib/protocols
parent5515c3a1091e4308467066c3cd58be59ff3d95d2 (diff)
parent7dc20134c05c719445ac4cf4ccae2cadbfa2ebf6 (diff)
Merge pull request #438 from pauloangelo/dev
HTTP respose status code after validation check.
Diffstat (limited to 'src/lib/protocols')
-rw-r--r--src/lib/protocols/http.c6
1 files changed, 0 insertions, 6 deletions
diff --git a/src/lib/protocols/http.c b/src/lib/protocols/http.c
index e9b011c51..3fd304867 100644
--- a/src/lib/protocols/http.c
+++ b/src/lib/protocols/http.c
@@ -826,12 +826,6 @@ static void ndpi_check_http_tcp(struct ndpi_detection_module_struct *ndpi_struct
ndpi_parse_packet_line_info(ndpi_struct, flow);
check_content_type_and_change_protocol(ndpi_struct, flow);
- /* Set server HTTP response code, if available */
- if(packet->http_response.len>=3){
- strncpy((char*)flow->http.response_status_code, (char*)packet->http_response.ptr, 3);
- flow->http.response_status_code[4]='\0';
- }
-
if(packet->packet_direction == 1 /* server -> client */){
flow->http.num_response_headers += packet->http_num_headers; /* flow structs are initialized with zeros */
}