summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorGravatar Nikias Bassen2019-08-29 09:56:03 +0200
committerGravatar Nikias Bassen2019-08-29 09:56:03 +0200
commit11922928f1f4707efd1436f45e4c624b5eabc857 (patch)
tree86f9f06f6d1bb1614757eb092cd498a9a360f367 /src
parente7a6b1f3845f7ac31ca391eed6840e22b4e5af6b (diff)
downloadidevicerestore-11922928f1f4707efd1436f45e4c624b5eabc857.tar.gz
idevicerestore-11922928f1f4707efd1436f45e4c624b5eabc857.tar.bz2
tss: Allow missing ApECID in tss_request_add_common_tags()
Diffstat (limited to 'src')
-rw-r--r--src/tss.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/tss.c b/src/tss.c
index d704fd0..9840893 100644
--- a/src/tss.c
+++ b/src/tss.c
@@ -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 */