diff options
author | David Oberhollenzer <david.oberhollenzer@sigma-star.at> | 2019-09-27 23:54:52 +0200 |
---|---|---|
committer | David Oberhollenzer <david.oberhollenzer@sigma-star.at> | 2019-09-28 00:06:07 +0200 |
commit | e7a38a62d3005c4b859bcfb9af151304d5008cd2 (patch) | |
tree | 5932a24d9bf0a7ccb8bbff9e4d25aa2badb73b53 /difftool | |
parent | b788f20d11ff0aef92c7400d8530c5961ea74541 (diff) |
Fix null-pointer deref in sqfsdiff initialization error path
If creating a dir reader fails, don't try to clean it up afterwards.
Signed-off-by: David Oberhollenzer <david.oberhollenzer@sigma-star.at>
Diffstat (limited to 'difftool')
-rw-r--r-- | difftool/sqfsdiff.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/difftool/sqfsdiff.c b/difftool/sqfsdiff.c index b0d270a..4209c9a 100644 --- a/difftool/sqfsdiff.c +++ b/difftool/sqfsdiff.c @@ -60,7 +60,7 @@ static int open_sfqs(sqfs_state_t *state, const char *path) state->file); if (state->dr == NULL) { perror("creating directory reader"); - goto fail_dr; + goto fail_id; } if (sqfs_dir_reader_get_full_hierarchy(state->dr, state->idtbl, |