]> git.ipfire.org Git - thirdparty/apache/httpd.git/commitdiff
Be defensive when the request is missing.
authorGraham Leggett <minfrin@apache.org>
Mon, 29 Jun 2020 09:33:12 +0000 (09:33 +0000)
committerGraham Leggett <minfrin@apache.org>
Mon, 29 Jun 2020 09:33:12 +0000 (09:33 +0000)
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1879322 13f79535-47bb-0310-9956-ffa450edef68

modules/dav/fs/repos.c

index ea08dfd924a53425977179e61ca1e912fed522bf..8dfa28a34ffc1512cf5908f5e26c8dedf832c183 100644 (file)
@@ -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 "";
     }