From: Zbigniew Jędrzejewski-Szmek Date: Wed, 20 Jan 2016 15:12:18 +0000 (-0500) Subject: journal-gatewayd: fix offset X-Git-Tag: v229~121^2 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F2387%2Fhead;p=thirdparty%2Fsystemd.git journal-gatewayd: fix offset I was checking something when writing the patch and committed this by mistake. --- diff --git a/src/journal-remote/journal-gatewayd.c b/src/journal-remote/journal-gatewayd.c index 7120a08e502..f5fe165fa33 100644 --- a/src/journal-remote/journal-gatewayd.c +++ b/src/journal-remote/journal-gatewayd.c @@ -700,7 +700,7 @@ static int request_handler_file( if (fstat(fd, &st) < 0) return mhd_respondf(connection, MHD_HTTP_INTERNAL_SERVER_ERROR, "Failed to stat file: %m\n"); - response = MHD_create_response_from_fd_at_offset64(st.st_size, fd, MHD_VERSION); + response = MHD_create_response_from_fd_at_offset64(st.st_size, fd, 0); if (!response) return respond_oom(connection);