summaryrefslogtreecommitdiffstats
path: root/src/idevicerestore.c
diff options
context:
space:
mode:
authorGravatar Nikias Bassen2013-11-20 11:52:40 +0100
committerGravatar Nikias Bassen2013-11-20 11:52:40 +0100
commit068d451cf357c1c359c450e91b3d7797fcafe4e3 (patch)
tree0e49b23df888f75a0d0cd648f7213382c243670f /src/idevicerestore.c
parent4c39067fff12ee84e4941d727e7caeb669e5ca39 (diff)
downloadidevicerestore-068d451cf357c1c359c450e91b3d7797fcafe4e3.tar.gz
idevicerestore-068d451cf357c1c359c450e91b3d7797fcafe4e3.tar.bz2
personalize_component: always return a component, also if not stitched
Diffstat (limited to 'src/idevicerestore.c')
-rw-r--r--src/idevicerestore.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/idevicerestore.c b/src/idevicerestore.c
index 7463aab..82629fa 100644
--- a/src/idevicerestore.c
+++ b/src/idevicerestore.c
@@ -1577,6 +1577,11 @@ int personalize_component(const char *component_name, const unsigned char* compo
}
} else {
info("Not personalizing component %s...\n", component_name);
+ stitched_component = (unsigned char*)malloc(component_size);
+ if (stitched_component) {
+ stitched_component_size = component_size;
+ memcpy(stitched_component, component_data, component_size);
+ }
}
if (component_blob)