mirror of
https://github.com/nmap/nmap.git
synced 2025-12-06 04:31:29 +00:00
Check the correct var for 413 error (was masked as 400)
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user