commit 6ad8fb11df7a8e44b9a94b620843892cea7cb47a
parent 4a9bb6522a5dcb991e69ad8b975df6e616a5238f
Author: Christian Grothoff <christian@grothoff.org>
Date: Wed, 26 Mar 2008 14:47:03 +0000
fix
Diffstat:
1 file changed, 4 insertions(+), 2 deletions(-)
diff --git a/src/daemon/connection.c b/src/daemon/connection.c
@@ -1220,8 +1220,10 @@ process_broken_line (struct MHD_Connection *connection,
connection->last = last;
return; /* possibly more than 2 lines... */
}
- if (MHD_NO == connection_add_header (connection,
- last, connection->colon, kind))
+ if ( (last != NULL) &&
+ (connection->colon != NULL) &&
+ (MHD_NO == connection_add_header (connection,
+ last, connection->colon, kind)) )
{
excessive_data_handler (connection, MHD_HTTP_REQUEST_ENTITY_TOO_LARGE);
return;