diff options
author | Christian Grothoff <christian@grothoff.org> | 2008-03-26 14:47:03 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2008-03-26 14:47:03 +0000 |
commit | 6ad8fb11df7a8e44b9a94b620843892cea7cb47a (patch) | |
tree | 4a2ce113d69e9ec74edbcc66f57808834bd3d214 | |
parent | 4a9bb6522a5dcb991e69ad8b975df6e616a5238f (diff) |
fix
-rw-r--r-- | src/daemon/connection.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/daemon/connection.c b/src/daemon/connection.c index 60cbfe43..70401e02 100644 --- 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; |