diff options
author | Martin Szulecki | 2010-07-09 23:39:58 +0200 |
---|---|---|
committer | Martin Szulecki | 2010-07-09 23:39:58 +0200 |
commit | c41bfdcfc9c8da11249422c70de6bc0884ebd32b (patch) | |
tree | 9a927e5a03d58f7f8a540b470b84541b56c010a1 | |
parent | ae0451c0b1de4419dd97614a4068a8f37522412e (diff) | |
download | idevicerestore-c41bfdcfc9c8da11249422c70de6bc0884ebd32b.tar.gz idevicerestore-c41bfdcfc9c8da11249422c70de6bc0884ebd32b.tar.bz2 |
Correctly check when to send the NORData
-rw-r--r-- | src/restore.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/restore.c b/src/restore.c index d40d294..bb3ed96 100644 --- a/src/restore.c +++ b/src/restore.c @@ -599,12 +599,14 @@ int restore_handle_data_request_msg(struct idevicerestore_client_t* client, idev } else if (!strcmp(type, "NORData")) { - if(client->flags & FLAG_EXCLUDE > 0) { + if((client->flags & FLAG_EXCLUDE) == 0) { + info("Sending NORData\n"); if(restore_send_nor(restore, client, build_identity) < 0) { error("ERROR: Unable to send NOR data\n"); return -1; } } else { + info("Not sending NORData... Quitting...\n"); client->flags |= FLAG_QUIT; } |