mirror of
https://github.com/nextcloud/desktop.git
synced 2024-11-26 15:06:08 +03:00
Make it an error instead of a crash when dav_connect fails.
Fixes #1591
This commit is contained in:
parent
9d1208baa4
commit
922e004fc6
1 changed files with 4 additions and 1 deletions
|
@ -970,7 +970,10 @@ static csync_vio_method_handle_t *owncloud_opendir(const char *uri) {
|
|||
|
||||
DEBUG_WEBDAV("opendir method called on %s", uri );
|
||||
|
||||
dav_connect( uri );
|
||||
if (dav_connect( uri ) < 0) {
|
||||
DEBUG_WEBDAV("connection failed");
|
||||
return NULL;
|
||||
}
|
||||
|
||||
curi = _cleanPath( uri );
|
||||
if (is_first_propfind && !dav_session.no_recursive_propfind) {
|
||||
|
|
Loading…
Reference in a new issue