# HG changeset patch # User Olaf Wintermann # Date 1679137578 -3600 # Node ID 4dccc47c282ef3bbdec88764a49793930f53a930 # Parent 39ebd50cfc12b9770011e27dcae4106977b284aa prevent crash in default_propfind_do triggered by bad webdav config diff -r 39ebd50cfc12 -r 4dccc47c282e src/server/webdav/webdav.c --- a/src/server/webdav/webdav.c Sat Mar 18 11:44:37 2023 +0100 +++ b/src/server/webdav/webdav.c Sat Mar 18 12:06:18 2023 +0100 @@ -892,6 +892,14 @@ { DefaultWebdavData *data = request->userdata; + if(!s) { + // stat is required for the default vfs + // if s is null, the dav backend config is not right + // (multiple backends configured and the primary backend doesn't + // use the VFS) + return 1; + } + // add all requested vfs properties like getcontentlength ... if(webdav_add_vfs_properties( resource,