summaryrefslogtreecommitdiff
path: root/rbutil/ipodpatcher/ipodpatcher.c
diff options
context:
space:
mode:
Diffstat (limited to 'rbutil/ipodpatcher/ipodpatcher.c')
-rw-r--r--rbutil/ipodpatcher/ipodpatcher.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/rbutil/ipodpatcher/ipodpatcher.c b/rbutil/ipodpatcher/ipodpatcher.c
index 2177320f2a..73467dea34 100644
--- a/rbutil/ipodpatcher/ipodpatcher.c
+++ b/rbutil/ipodpatcher/ipodpatcher.c
@@ -1292,23 +1292,28 @@ int ipod_scan(struct ipod_t* ipod)
1292 if(result == -2) { 1292 if(result == -2) {
1293 denied++; 1293 denied++;
1294 } 1294 }
1295 ipod_close(ipod);
1295 continue; 1296 continue;
1296 } 1297 }
1297 1298
1298 if (read_partinfo(ipod,1) < 0) { 1299 if (read_partinfo(ipod,1) < 0) {
1300 ipod_close(ipod);
1299 continue; 1301 continue;
1300 } 1302 }
1301 1303
1302 if ((ipod->pinfo[0].start==0) || (ipod->pinfo[0].type != 0)) { 1304 if ((ipod->pinfo[0].start==0) || (ipod->pinfo[0].type != 0)) {
1305 ipod_close(ipod);
1303 continue; 1306 continue;
1304 } 1307 }
1305 1308
1306 if (read_directory(ipod) < 0) { 1309 if (read_directory(ipod) < 0) {
1310 ipod_close(ipod);
1307 continue; 1311 continue;
1308 } 1312 }
1309 1313
1310 ipod_version=(ipod->ipod_directory[0].vers>>8); 1314 ipod_version=(ipod->ipod_directory[0].vers>>8);
1311 if (getmodel(ipod,ipod_version) < 0) { 1315 if (getmodel(ipod,ipod_version) < 0) {
1316 ipod_close(ipod);
1312 continue; 1317 continue;
1313 } 1318 }
1314 1319