mirror of
https://github.com/zeek/zeek.git
synced 2025-10-02 14:48:21 +00:00
updated weird message and tests
This commit is contained in:
parent
78c0e2355c
commit
9ebe7b2a21
7 changed files with 10 additions and 10 deletions
|
@ -1214,7 +1214,7 @@ int HTTP_Analyzer::HTTP_RequestLine(const char* line, const char* end_of_line)
|
|||
// perform a weak test to see if the string "HTTP/"
|
||||
// is found at the end of the RequestLine
|
||||
if ( strcasecmp_n(6, end_of_line - 9, " HTTP/") == 0 )
|
||||
goto evasion;
|
||||
goto bad_http_request_with_version;
|
||||
goto error;
|
||||
}
|
||||
|
||||
|
@ -1237,8 +1237,8 @@ int HTTP_Analyzer::HTTP_RequestLine(const char* line, const char* end_of_line)
|
|||
|
||||
return 1;
|
||||
|
||||
evasion:
|
||||
reporter->Weird(Conn(), "possible_evasion_attempt");
|
||||
bad_http_request_with_version:
|
||||
reporter->Weird(Conn(), "bad_HTTP_request_with_version_field");
|
||||
return 0;
|
||||
|
||||
error:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue