summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Martin Szulecki2012-07-17 19:29:38 +0200
committerGravatar Nikias Bassen2012-07-17 19:29:38 +0200
commit2d8ad559c605a3dbdfc7a8cab5bd95a1bf6279b0 (patch)
treeeabc0d7dfc84c3f52e7d6702a6e17afba67bdaf4
parentc86c3f424fc566b7d45286639e033ae0f41e01e2 (diff)
downloadidevicerestore-2d8ad559c605a3dbdfc7a8cab5bd95a1bf6279b0.tar.gz
idevicerestore-2d8ad559c605a3dbdfc7a8cab5bd95a1bf6279b0.tar.bz2
main: return -2 instead of -1 if nonce could not be retrieved
-rw-r--r--src/idevicerestore.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/idevicerestore.c b/src/idevicerestore.c
index 8c5cf3c..c5f6dbb 100644
--- a/src/idevicerestore.c
+++ b/src/idevicerestore.c
@@ -806,7 +806,7 @@ int main(int argc, char* argv[]) {
recovery_send_reset(client);
if (delete_fs && filesystem)
unlink(filesystem);
- return -1;
+ return -2;
}
if (!client->nonce || (nonce_size != client->nonce_size) || (memcmp(nonce, client->nonce, nonce_size) != 0)) {