Found by Fabian Raetz at gmail
-/* $OpenBSD: server_http.c,v 1.61 2015/01/06 13:48:15 reyk Exp $ */
+/* $OpenBSD: server_http.c,v 1.62 2015/01/06 17:48:04 reyk Exp $ */
/*
* Copyright (c) 2006 - 2014 Reyk Floeter <reyk@openbsd.org>
/* Limit the total header length minus \r\n */
clt->clt_headerlen += linelen;
if (clt->clt_headerlen > SERVER_MAXHEADERLENGTH) {
- free(line);
server_abort_http(clt, 413, "request too large");
- return;
+ goto abort;
}
/*