Sat, 18 Mar 2023 12:06:18 +0100
prevent crash in default_propfind_do triggered by bad webdav config
src/server/webdav/webdav.c | file | annotate | diff | comparison | revisions |
--- 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,