1
0
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:
dmiller
2021-12-14 18:36:54 +00:00
parent a292d37997
commit 0467fa7866

View File

@@ -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