diff options
| author | 2019-09-27 12:52:03 +0200 | |
|---|---|---|
| committer | 2019-09-27 12:52:03 +0200 | |
| commit | 8f96c52de2f9f35f361d29095190fc673db7d1c1 (patch) | |
| tree | 991b5f37ed8c504b2f77a8d0afc22182afbd340c /src/mobilebackup.c | |
| parent | acf0a76be3c81a8ce69817af2b16a546a08f7ecb (diff) | |
| download | libimobiledevice-8f96c52de2f9f35f361d29095190fc673db7d1c1.tar.gz libimobiledevice-8f96c52de2f9f35f361d29095190fc673db7d1c1.tar.bz2 | |
Make sure to handle timeout errors in device link service and all depending services
Diffstat (limited to 'src/mobilebackup.c')
| -rw-r--r-- | src/mobilebackup.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/mobilebackup.c b/src/mobilebackup.c index b32e0ba..2682a6f 100644 --- a/src/mobilebackup.c +++ b/src/mobilebackup.c | |||
| @@ -2,6 +2,7 @@ | |||
| 2 | * mobilebackup.c | 2 | * mobilebackup.c |
| 3 | * Contains functions for the built-in MobileBackup client. | 3 | * Contains functions for the built-in MobileBackup client. |
| 4 | * | 4 | * |
| 5 | * Copyright (c) 2010-2019 Nikias Bassen, All Rights Reserved. | ||
| 5 | * Copyright (c) 2009 Martin Szulecki All Rights Reserved. | 6 | * Copyright (c) 2009 Martin Szulecki All Rights Reserved. |
| 6 | * | 7 | * |
| 7 | * This library is free software; you can redistribute it and/or | 8 | * This library is free software; you can redistribute it and/or |
| @@ -52,6 +53,10 @@ static mobilebackup_error_t mobilebackup_error(device_link_service_error_t err) | |||
| 52 | return MOBILEBACKUP_E_PLIST_ERROR; | 53 | return MOBILEBACKUP_E_PLIST_ERROR; |
| 53 | case DEVICE_LINK_SERVICE_E_MUX_ERROR: | 54 | case DEVICE_LINK_SERVICE_E_MUX_ERROR: |
| 54 | return MOBILEBACKUP_E_MUX_ERROR; | 55 | return MOBILEBACKUP_E_MUX_ERROR; |
| 56 | case DEVICE_LINK_SERVICE_E_SSL_ERROR: | ||
| 57 | return MOBILEBACKUP_E_SSL_ERROR; | ||
| 58 | case DEVICE_LINK_SERVICE_E_RECEIVE_TIMEOUT: | ||
| 59 | return MOBILEBACKUP_E_RECEIVE_TIMEOUT; | ||
| 55 | case DEVICE_LINK_SERVICE_E_BAD_VERSION: | 60 | case DEVICE_LINK_SERVICE_E_BAD_VERSION: |
| 56 | return MOBILEBACKUP_E_BAD_VERSION; | 61 | return MOBILEBACKUP_E_BAD_VERSION; |
| 57 | default: | 62 | default: |
