Make it an error instead of a crash when dav_connect fails.

Fixes #1591
This commit is contained in:
Olivier Goffart 2014-03-21 09:54:26 +01:00
parent 9d1208baa4
commit 922e004fc6

View file

@ -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) {