Changeset 1315


Ignore:
Timestamp:
09/04/11 22:52:51 (22 months ago)
Author:
reyalp
Message:

send dummy data phase in PTP download on error cases, prevents invalid filenames hosing connection

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/core/ptp.c

    r1155 r1315  
    435435        if ( temp_data_kind != 1 ) 
    436436        { 
     437          // send dummy data, otherwise error hoses connection 
     438          send_ptp_data(data,"\0",1); 
    437439          ptp.code = PTP_RC_GeneralError; 
    438440          break; 
     
    442444        if ( fn == NULL ) 
    443445        { 
     446          // send dummy data, otherwise error hoses connection 
     447          send_ptp_data(data,"\0",1); 
    444448          free(temp_data.str); 
    445449          temp_data_kind = 0; 
     
    456460        if ( f == NULL ) 
    457461        { 
     462          // send dummy data, otherwise error hoses connection 
     463          send_ptp_data(data,"\0",1); 
    458464          ptp.code = PTP_RC_GeneralError; 
    459465          free(fn); 
     
    469475        if ( buf == NULL ) 
    470476        { 
     477          // send dummy data, otherwise error hoses connection 
     478          send_ptp_data(data,"\0",1); 
    471479          ptp.code = PTP_RC_GeneralError; 
    472480          break; 
Note: See TracChangeset for help on using the changeset viewer.