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) | |
download | libmicrohttpd-6ad8fb11df7a8e44b9a94b620843892cea7cb47a.tar.gz libmicrohttpd-6ad8fb11df7a8e44b9a94b620843892cea7cb47a.zip |
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, | |||
1220 | connection->last = last; | 1220 | connection->last = last; |
1221 | return; /* possibly more than 2 lines... */ | 1221 | return; /* possibly more than 2 lines... */ |
1222 | } | 1222 | } |
1223 | if (MHD_NO == connection_add_header (connection, | 1223 | if ( (last != NULL) && |
1224 | last, connection->colon, kind)) | 1224 | (connection->colon != NULL) && |
1225 | (MHD_NO == connection_add_header (connection, | ||
1226 | last, connection->colon, kind)) ) | ||
1225 | { | 1227 | { |
1226 | excessive_data_handler (connection, MHD_HTTP_REQUEST_ENTITY_TOO_LARGE); | 1228 | excessive_data_handler (connection, MHD_HTTP_REQUEST_ENTITY_TOO_LARGE); |
1227 | return; | 1229 | return; |