diff options
author | Nikias Bassen | 2017-07-04 02:50:24 +0200 |
---|---|---|
committer | Nikias Bassen | 2017-07-04 02:50:24 +0200 |
commit | fdaddb539e8d2f25ccc8cc66d8c1e36cfee83e02 (patch) | |
tree | 7059514321d3676908ab242d82e9c7b4f1e1b134 /src/libirecovery.c | |
parent | 48e3fcc9d7b3baabdb61f7eda5ea3a576d5cf051 (diff) | |
download | libirecovery-fdaddb539e8d2f25ccc8cc66d8c1e36cfee83e02.tar.gz libirecovery-fdaddb539e8d2f25ccc8cc66d8c1e36cfee83e02.tar.bz2 |
irecv_send_buffer: Fix status check loop condition by incrementing retry count
This state is hardly reached but nevertheless it doesn't make sense
to check a retry count that never increases :)
Diffstat (limited to 'src/libirecovery.c')
-rw-r--r-- | src/libirecovery.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libirecovery.c b/src/libirecovery.c index 9260adb..1b42fbd 100644 --- a/src/libirecovery.c +++ b/src/libirecovery.c @@ -1794,7 +1794,7 @@ IRECV_API irecv_error_t irecv_send_buffer(irecv_client_t client, unsigned char* if (!recovery_mode && status != 5) { int retry = 0; - while (retry < 20) { + while (retry++ < 20) { irecv_get_status(client, &status); if (status == 5) { break; |