[ostree] repo: Fix crash without SELinux policy enabled during commit



commit 9fc9008af8374e7c983a26c18f200e6c7bbf8cbb
Author: Colin Walters <walters verbum org>
Date:   Thu Feb 20 14:19:49 2014 -0500

    repo: Fix crash without SELinux policy enabled during commit

 src/libostree/ostree-repo-commit.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/libostree/ostree-repo-commit.c b/src/libostree/ostree-repo-commit.c
index 1b3136d..0e14e4c 100644
--- a/src/libostree/ostree-repo-commit.c
+++ b/src/libostree/ostree-repo-commit.c
@@ -1709,7 +1709,7 @@ get_modified_xattrs (OstreeRepo                       *self,
         goto out;
     }
 
-  if (modifier->sepolicy)
+  if (modifier && modifier->sepolicy)
     {
       gs_free char *label = NULL;
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]