diff options
| -rw-r--r-- | src/libirecovery.c | 11 |
1 files changed, 1 insertions, 10 deletions
diff --git a/src/libirecovery.c b/src/libirecovery.c index bbe88aa..a2e54b1 100644 --- a/src/libirecovery.c +++ b/src/libirecovery.c | |||
| @@ -785,16 +785,7 @@ irecv_error_t irecv_open_with_ecid(irecv_client_t* pclient, unsigned long long e | |||
| 785 | irecv_copy_nonce_with_tag(client, "SNON", &client->device_info.sep_nonce, &client->device_info.sep_nonce_size); | 785 | irecv_copy_nonce_with_tag(client, "SNON", &client->device_info.sep_nonce, &client->device_info.sep_nonce_size); |
| 786 | 786 | ||
| 787 | if (ecid != 0) { | 787 | if (ecid != 0) { |
| 788 | char* ecid_string = strstr(serial_str, "ECID:"); | 788 | if (client->device_info.ecid != ecid) { |
| 789 | if (ecid_string == NULL) { | ||
| 790 | debug("%s: could not get ECID for device\n", __func__); | ||
| 791 | irecv_close(client); | ||
| 792 | continue; | ||
| 793 | } | ||
| 794 | |||
| 795 | unsigned long long this_ecid = 0; | ||
| 796 | sscanf(ecid_string, "ECID:" _FMT_qX, (unsigned long long*)&this_ecid); | ||
| 797 | if (this_ecid != ecid) { | ||
| 798 | irecv_close(client); | 789 | irecv_close(client); |
| 799 | continue; | 790 | continue; |
| 800 | } | 791 | } |
