mirror of
https://github.com/nmap/nmap.git
synced 2026-08-04 06:40:48 +00:00
Check the correct var for 413 error (was masked as 400)
This commit is contained in:
parent
a292d37997
commit
0467fa7866
1 changed files with 1 additions and 1 deletions
|
|
@ -892,7 +892,7 @@ int http_read_header(struct socket_buffer *buf, char **result)
|
|||
line = socket_buffer_readline(buf, &count, MAX_HEADER_LENGTH);
|
||||
if (line == NULL) {
|
||||
free(header);
|
||||
if (n >= MAX_HEADER_LENGTH)
|
||||
if (count >= MAX_HEADER_LENGTH)
|
||||
/* Request Entity Too Large. */
|
||||
return 413;
|
||||
else
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue