summaryrefslogtreecommitdiffstats
path: root/src/tss.c
diff options
context:
space:
mode:
authorGravatar Martin Szulecki2013-11-19 22:44:36 +0100
committerGravatar Martin Szulecki2013-11-19 22:44:36 +0100
commit85bd0230696f7f50dbc5ec15f1d00a047053e981 (patch)
tree5dd86c7e40e33c6a28a740df76165930442db782 /src/tss.c
parent5e0114258a5df4b78f052cdffcfebb3c8bad7c5f (diff)
downloadidevicerestore-85bd0230696f7f50dbc5ec15f1d00a047053e981.tar.gz
idevicerestore-85bd0230696f7f50dbc5ec15f1d00a047053e981.tar.bz2
tss: Check for ApSecurityDomain as uint instead of string correctly
Diffstat (limited to 'src/tss.c')
-rw-r--r--src/tss.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/tss.c b/src/tss.c
index 21de0a6..789cc0e 100644
--- a/src/tss.c
+++ b/src/tss.c
@@ -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;