summaryrefslogtreecommitdiff
path: root/lib/sqfs
diff options
context:
space:
mode:
authorDavid Oberhollenzer <david.oberhollenzer@sigma-star.at>2019-08-02 15:52:45 +0200
committerDavid Oberhollenzer <david.oberhollenzer@sigma-star.at>2019-08-02 15:52:45 +0200
commitf619c555206aa45d1d74fa7f8480145326f11039 (patch)
treebf023537864e1829742a1388c2cf00839a97c3d1 /lib/sqfs
parent0a40372096c624e5fceebe9cb90305946505dd68 (diff)
Fix explicit NULL dereference in deserialize_fstree failure path
If we failed to create the root node, we don't need to cleanup the fstree_t which would attempt to recursively cleanup the root node. Signed-off-by: David Oberhollenzer <david.oberhollenzer@sigma-star.at>
Diffstat (limited to 'lib/sqfs')
-rw-r--r--lib/sqfs/deserialize_fstree.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/sqfs/deserialize_fstree.c b/lib/sqfs/deserialize_fstree.c
index c02212b..f758a61 100644
--- a/lib/sqfs/deserialize_fstree.c
+++ b/lib/sqfs/deserialize_fstree.c
@@ -230,7 +230,7 @@ int deserialize_fstree(fstree_t *out, sqfs_super_t *super, compressor_t *cmp,
if (out->root == NULL) {
free(root);
- goto fail_fs;
+ goto out_xr;
}
if (flags & RDTREE_READ_XATTR) {