Skip to content

Commit bf19cfe

Browse files
committed
* modules/dav/fs/repos.c (dav_fs_method_precondition):
Fix crashes when mod_dav_fs is not configured. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1925371 13f79535-47bb-0310-9956-ffa450edef68
1 parent e362378 commit bf19cfe

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

modules/dav/fs/repos.c

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2341,6 +2341,11 @@ int dav_fs_method_precondition(request_rec *r,
23412341
{
23422342
int ret = DECLINED;
23432343

2344+
if ((src && src->hooks != &dav_hooks_repository_fs)
2345+
|| (dst && dst->hooks != &dav_hooks_repository_fs)) {
2346+
return ret;
2347+
}
2348+
23442349
switch (r->method_number) {
23452350
case M_COPY: /* FALLTHROUGH */
23462351
case M_MOVE: /* FALLTHROUGH */

0 commit comments

Comments
 (0)