diff options
author | Ruediger Pluem <rpluem@apache.org> | 2018-09-26 11:46:42 +0200 |
---|---|---|
committer | Ruediger Pluem <rpluem@apache.org> | 2018-09-26 11:46:42 +0200 |
commit | cf26c492a106d667a67a8944bbdc10e0a6fdcbb0 (patch) | |
tree | bdc4b027b8e302653cc095f1cc9e072f147537bd /modules/dav/main/mod_dav.c | |
parent | * include/httpd.h: Define HTTP_TOO_EARLY (425) per RFC 8470. (diff) | |
download | apache2-cf26c492a106d667a67a8944bbdc10e0a6fdcbb0.tar.xz apache2-cf26c492a106d667a67a8944bbdc10e0a6fdcbb0.zip |
* dav_stream_response processes data that has been allocated from the propdb
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
Diffstat (limited to '')
-rw-r--r-- | modules/dav/main/mod_dav.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/modules/dav/main/mod_dav.c b/modules/dav/main/mod_dav.c index 1f26adb666..c1619d82e3 100644 --- a/modules/dav/main/mod_dav.c +++ b/modules/dav/main/mod_dav.c @@ -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 |