summaryrefslogtreecommitdiffstats
path: root/src/mobilebackup2.c
diff options
context:
space:
mode:
authorGravatar Nikias Bassen2019-09-27 12:52:03 +0200
committerGravatar Nikias Bassen2019-09-27 12:52:03 +0200
commit8f96c52de2f9f35f361d29095190fc673db7d1c1 (patch)
tree991b5f37ed8c504b2f77a8d0afc22182afbd340c /src/mobilebackup2.c
parentacf0a76be3c81a8ce69817af2b16a546a08f7ecb (diff)
downloadlibimobiledevice-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/mobilebackup2.c')
-rw-r--r--src/mobilebackup2.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/mobilebackup2.c b/src/mobilebackup2.c
index 08ce22b..e7cc581 100644
--- a/src/mobilebackup2.c
+++ b/src/mobilebackup2.c
@@ -2,7 +2,7 @@
2 * mobilebackup2.c 2 * mobilebackup2.c
3 * Contains functions for the built-in MobileBackup2 client (iOS4+ only) 3 * Contains functions for the built-in MobileBackup2 client (iOS4+ only)
4 * 4 *
5 * Copyright (c) 2010 Nikias Bassen All Rights Reserved. 5 * Copyright (c) 2010-2019 Nikias Bassen, All Rights Reserved.
6 * 6 *
7 * This library is free software; you can redistribute it and/or 7 * This library is free software; you can redistribute it and/or
8 * modify it under the terms of the GNU Lesser General Public 8 * modify it under the terms of the GNU Lesser General Public
@@ -53,6 +53,10 @@ static mobilebackup2_error_t mobilebackup2_error(device_link_service_error_t err
53 return MOBILEBACKUP2_E_PLIST_ERROR; 53 return MOBILEBACKUP2_E_PLIST_ERROR;
54 case DEVICE_LINK_SERVICE_E_MUX_ERROR: 54 case DEVICE_LINK_SERVICE_E_MUX_ERROR:
55 return MOBILEBACKUP2_E_MUX_ERROR; 55 return MOBILEBACKUP2_E_MUX_ERROR;
56 case DEVICE_LINK_SERVICE_E_SSL_ERROR:
57 return MOBILEBACKUP2_E_SSL_ERROR;
58 case DEVICE_LINK_SERVICE_E_RECEIVE_TIMEOUT:
59 return MOBILEBACKUP2_E_RECEIVE_TIMEOUT;
56 case DEVICE_LINK_SERVICE_E_BAD_VERSION: 60 case DEVICE_LINK_SERVICE_E_BAD_VERSION:
57 return MOBILEBACKUP2_E_BAD_VERSION; 61 return MOBILEBACKUP2_E_BAD_VERSION;
58 default: 62 default: