]> git.ipfire.org Git - thirdparty/apache/httpd.git/commitdiff
* dav_stream_response processes data that has been allocated from the propdb
authorRuediger Pluem <rpluem@apache.org>
Wed, 26 Sep 2018 09:46:42 +0000 (09:46 +0000)
committerRuediger Pluem <rpluem@apache.org>
Wed, 26 Sep 2018 09:46:42 +0000 (09:46 +0000)
  pool. Hence close the propdb *after* dav_stream_response which clears thei
  probdb pool.

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1842010 13f79535-47bb-0310-9956-ffa450edef68

modules/dav/main/mod_dav.c

index 1f26adb666080ed23c9c0c474294f91c99165277..c1619d82e316535f638b2e20fe48a9f4877398ae 100644 (file)
@@ -2059,10 +2059,10 @@ static dav_error * dav_propfind_walker(dav_walk_resource *wres, int calltype)
                                  : DAV_PROP_INSERT_NAME;
         propstats = dav_get_allprops(propdb, what);
     }
-    dav_close_propdb(propdb);
-
     dav_stream_response(wres, 0, &propstats, ctx->scratchpool);
 
+    dav_close_propdb(propdb);
+
     /* at this point, ctx->scratchpool has been used to stream a
        single response.  this function fully controls the pool, and
        thus has the right to clear it for the next iteration of this