From c41bfdcfc9c8da11249422c70de6bc0884ebd32b Mon Sep 17 00:00:00 2001 From: Martin Szulecki Date: Fri, 9 Jul 2010 23:39:58 +0200 Subject: Correctly check when to send the NORData --- src/restore.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/restore.c') 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; } -- cgit v1.1-32-gdbae