]> www.dolda2000.com Git - ashd.git/commitdiff
accesslog: Fix %p bug.
authorFredrik Tolf <fredrik@dolda2000.com>
Wed, 9 Aug 2023 17:23:52 +0000 (19:23 +0200)
committerFredrik Tolf <fredrik@dolda2000.com>
Wed, 9 Aug 2023 17:23:52 +0000 (19:23 +0200)
src/accesslog.c

index e419587989abd3d168e4c09dcdbd74b09e7ffff0..0c7ef8d50aa9669f0ef8658d4a5628013ee46df0 100644 (file)
@@ -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);