summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Martin Szulecki2013-11-20 11:26:55 +0100
committerGravatar Martin Szulecki2013-11-20 11:39:37 +0100
commitccf66d744077218dc9eea230172e292afac00a0b (patch)
tree50cf1581b9439d9ac9279ede2225ec235c684ff8
parent9308e665a2741690b4fa50fa494d7568dda95a28 (diff)
downloadidevicerestore-ccf66d744077218dc9eea230172e292afac00a0b.tar.gz
idevicerestore-ccf66d744077218dc9eea230172e292afac00a0b.tar.bz2
tss: Fix check on ApSecurityMode which is a boolean
-rw-r--r--src/tss.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/tss.c b/src/tss.c
index a56322e..14218f2 100644
--- a/src/tss.c
+++ b/src/tss.c
@@ -104,7 +104,7 @@ int tss_request_add_ap_img4_tags(plist_t request, plist_t parameters) {
if (!node) {
/* copy from parameters if available */
node = plist_dict_get_item(parameters, "ApSecurityMode");
- if (!node || plist_get_node_type(node) != PLIST_UINT) {
+ if (!node || plist_get_node_type(node) != PLIST_BOOLEAN) {
error("ERROR: Unable to find required ApSecurityMode in parameters\n");
return -1;
}