diff options
author | Martin Szulecki | 2013-11-19 22:44:36 +0100 |
---|---|---|
committer | Martin Szulecki | 2013-11-19 22:44:36 +0100 |
commit | 85bd0230696f7f50dbc5ec15f1d00a047053e981 (patch) | |
tree | 5dd86c7e40e33c6a28a740df76165930442db782 | |
parent | 5e0114258a5df4b78f052cdffcfebb3c8bad7c5f (diff) | |
download | idevicerestore-85bd0230696f7f50dbc5ec15f1d00a047053e981.tar.gz idevicerestore-85bd0230696f7f50dbc5ec15f1d00a047053e981.tar.bz2 |
tss: Check for ApSecurityDomain as uint instead of string correctly
-rw-r--r-- | src/tss.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -173,7 +173,7 @@ int tss_request_add_ap_img3_tags(plist_t request, plist_t parameters) { /* ApSecurityDomain */ node = plist_dict_get_item(request, "ApSecurityDomain"); - if (!node || plist_get_node_type(node) != PLIST_STRING) { + if (!node || plist_get_node_type(node) != PLIST_UINT) { error("ERROR: Unable to find required ApSecurityDomain in request\n"); return -1; } @@ -286,7 +286,7 @@ int tss_request_add_ap_tags_from_manifest(plist_t request, plist_t build_identit } plist_get_string_val(node, &string); sscanf(string, "%x", &security_domain); - plist_dict_insert_item(request, "ApSecurityDomain", plist_new_string(string)); + plist_dict_insert_item(request, "ApSecurityDomain", plist_new_uint(security_domain)); free(string); string = NULL; node = NULL; |