From: Fredrik Tolf Date: Wed, 9 Aug 2023 17:23:52 +0000 (+0200) Subject: accesslog: Fix %p bug. X-Git-Url: http://dolda2000.com/gitweb/?p=ashd.git;a=commitdiff_plain;h=a7d7286d8de39daaf90952eeea77e5e83d598eae accesslog: Fix %p bug. --- diff --git a/src/accesslog.c b/src/accesslog.c index e419587..0c7ef8d 100644 --- a/src/accesslog.c +++ b/src/accesslog.c @@ -97,7 +97,7 @@ static void logitem(struct logdata *data, char o, char *d) } break; case 'p': - if(!data->resp || ((h = getheader(data->req, d)) == NULL)) { + if(!data->resp || ((h = getheader(data->resp, d)) == NULL)) { putc('-', out); } else { qputs(h, out);