From: Graham Leggett Date: Mon, 29 Jun 2020 09:33:12 +0000 (+0000) Subject: Be defensive when the request is missing. X-Git-Tag: 2.5.0-alpha2-ci-test-only~1324 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=134606e780620807d2304467abac1a8a144866e0;p=thirdparty%2Fapache%2Fhttpd.git Be defensive when the request is missing. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1879322 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/modules/dav/fs/repos.c b/modules/dav/fs/repos.c index ea08dfd924a..8dfa28a34ff 100644 --- a/modules/dav/fs/repos.c +++ b/modules/dav/fs/repos.c @@ -1861,7 +1861,7 @@ static const char *dav_fs_getetag(const dav_resource *resource) dav_resource_private *ctx = resource->info; - if (!resource->exists) { + if (!resource->exists || !ctx->r) { return ""; }