Skip to content

Commit

Permalink
leave the read loop on an unknown packet. we might have overread some…
Browse files Browse the repository at this point in the history
…how. (reported by email, user had shortened the file on the SD card, camera still offered original size)
  • Loading branch information
msmeissn committed Nov 22, 2023
1 parent 29cb9da commit 8931db2
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions camlibs/ptp2/ptpip.c
Original file line number Diff line number Diff line change
Expand Up @@ -370,6 +370,7 @@ ptp_ptpip_getdata (PTPParams* params, PTPContainer* ptp, PTPDataHandler *handler
continue;
}
GP_LOG_E ("ret type %d", hdr.type);
break;
}
if (curread < toread)
return PTP_RC_GeneralError;
Expand Down

0 comments on commit 8931db2

Please sign in to comment.