summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Nikias Bassen2012-02-02 20:35:09 +0100
committerGravatar Nikias Bassen2012-02-02 20:35:09 +0100
commit7d30cbb6477f1940f3d398c17009360ec07ff291 (patch)
tree60e3ae6230f15d23ed23590ec34f57b4e7b1131c
parentdbd691eea29cf6682c342186a41b534b2b3d2167 (diff)
downloadidevicerestore-7d30cbb6477f1940f3d398c17009360ec07ff291.tar.gz
idevicerestore-7d30cbb6477f1940f3d398c17009360ec07ff291.tar.bz2
main: call fixup_tss here too to make sure TSS data is sane
-rw-r--r--src/idevicerestore.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/idevicerestore.c b/src/idevicerestore.c
index bec855c..0edec02 100644
--- a/src/idevicerestore.c
+++ b/src/idevicerestore.c
@@ -228,6 +228,11 @@ int main(int argc, char* argv[]) {
return -1;
}
+ if ((tss_enabled) && client->tss) {
+ /* fix empty dicts */
+ fixup_tss(client->tss);
+ }
+
// Extract filesystem from IPSW and return its name
char* filesystem = NULL;
if (ipsw_extract_filesystem(client->ipsw, build_identity, &filesystem) < 0) {