X-Git-Url: http://www.dolda2000.com/gitweb/?p=ashd.git;a=blobdiff_plain;f=src%2Fpsendfile.c;h=3e26f8f0033fff6caf0c99af58e4ac06eac57d93;hp=f5c7fdd466c2519023c6412de353f9830989bb55;hb=b71ad67f41a9e99bd243d57b5038de28f1696f27;hpb=ff28e3a531571868159d2a48039bec6bc83f2f0f diff --git a/src/psendfile.c b/src/psendfile.c index f5c7fdd..3e26f8f 100644 --- a/src/psendfile.c +++ b/src/psendfile.c @@ -227,7 +227,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");