[Pkg-owncloud-commits] [owncloud-client] 17/332: Avoid crash on csync_ctx is NULL.

Sandro Knauß hefee-guest at moszumanska.debian.org
Thu Aug 14 21:06:33 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 16d35c1489d1c8ecaa13ab09af6e437f60b7a5a5
Author: Klaas Freitag <freitag at owncloud.com>
Date:   Mon Jun 2 12:04:04 2014 +0200

    Avoid crash on csync_ctx is NULL.
---
 csync/src/csync_exclude.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/csync/src/csync_exclude.c b/csync/src/csync_exclude.c
index 0c33988..f130cbc 100644
--- a/csync/src/csync_exclude.c
+++ b/csync/src/csync_exclude.c
@@ -217,7 +217,7 @@ CSYNC_EXCLUDE_TYPE csync_excluded(CSYNC *ctx, const char *path, int filetype) {
   SAFE_FREE(bname);
   SAFE_FREE(dname);
 
-  if (ctx->excludes == NULL) {
+  if (ctx == NULL || ctx->excludes == NULL) {
       goto out;
   }
 

-- 
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