diff options
Diffstat (limited to 'src/daemon/connection.c')
-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; |