diff options
author | Nikias Bassen | 2019-08-29 09:56:03 +0200 |
---|---|---|
committer | Nikias Bassen | 2019-08-29 09:56:03 +0200 |
commit | 11922928f1f4707efd1436f45e4c624b5eabc857 (patch) | |
tree | 86f9f06f6d1bb1614757eb092cd498a9a360f367 /src/tss.c | |
parent | e7a6b1f3845f7ac31ca391eed6840e22b4e5af6b (diff) | |
download | idevicerestore-11922928f1f4707efd1436f45e4c624b5eabc857.tar.gz idevicerestore-11922928f1f4707efd1436f45e4c624b5eabc857.tar.bz2 |
tss: Allow missing ApECID in tss_request_add_common_tags()
Diffstat (limited to 'src/tss.c')
-rw-r--r-- | src/tss.c | 6 |
1 files changed, 2 insertions, 4 deletions
@@ -422,11 +422,9 @@ int tss_request_add_common_tags(plist_t request, plist_t parameters, plist_t ove /* ApECID */ node = plist_dict_get_item(parameters, "ApECID"); - if (!node || plist_get_node_type(node) != PLIST_UINT) { - error("ERROR: Unable to find required ApECID in parameters\n"); - return -1; + if (node) { + plist_dict_set_item(request, "ApECID", plist_copy(node)); } - plist_dict_set_item(request, "ApECID", plist_copy(node)); node = NULL; /* UniqueBuildID */ |