[Pkg-owncloud-commits] [owncloud-client] 192/333: Make it an error instead of a crash when dav_connect fails.
Sandro Knauß
hefee-guest at moszumanska.debian.org
Thu Apr 17 23:16:52 UTC 2014
This is an automated email from the git hooks/post-receive script.
hefee-guest pushed a commit to branch master
in repository owncloud-client.
commit 922e004fc6a1b8e02968f349ff512d972a0bdef2
Author: Olivier Goffart <ogoffart at woboq.com>
Date: Fri Mar 21 09:54:26 2014 +0100
Make it an error instead of a crash when dav_connect fails.
Fixes #1591
---
csync/src/csync_owncloud.c | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/csync/src/csync_owncloud.c b/csync/src/csync_owncloud.c
index f5a4ab1..bf8e658 100644
--- a/csync/src/csync_owncloud.c
+++ b/csync/src/csync_owncloud.c
@@ -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) {
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-owncloud/owncloud-client.git
More information about the Pkg-owncloud-commits
mailing list