From 068d451cf357c1c359c450e91b3d7797fcafe4e3 Mon Sep 17 00:00:00 2001 From: Nikias Bassen Date: Wed, 20 Nov 2013 11:52:40 +0100 Subject: personalize_component: always return a component, also if not stitched --- src/idevicerestore.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src') 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) -- cgit v1.1-32-gdbae