X-Git-Url: http://www.dolda2000.com/gitweb/?a=blobdiff_plain;f=src%2Fpsendfile.c;h=464440a0ae598c921f892664466cc64d9e051cd3;hb=56e1ccba9f8df6e59711d067c6fcb05b74fc35ca;hp=f5c7fdd466c2519023c6412de353f9830989bb55;hpb=107712e330c1921d198dcb2c70c8369cda2d85be;p=ashd.git diff --git a/src/psendfile.c b/src/psendfile.c index f5c7fdd..464440a 100644 --- a/src/psendfile.c +++ b/src/psendfile.c @@ -25,6 +25,7 @@ #include #include #include +#include #include #include #include @@ -227,7 +228,7 @@ static void serve(struct muth *muth, va_list args) sfile = NULL; contype = NULL; - out = mtstdopen(fd, 1, 60, "r+"); + out = mtstdopen(fd, 1, 60, "r+", NULL); if((file = getheader(req, "X-Ash-File")) == NULL) { flog(LOG_ERR, "psendfile: needs to be called with the X-Ash-File header");