Ticket #11072: sftp.c.patch

File sftp.c.patch, 666 bytes (added by Tim Kosse, 8 years ago)
  • src/putty/sftp.c

     
    360360struct sftp_request *sftp_find_request(struct sftp_packet *pktin)
    361361{
    362362    unsigned long id;
     363    unsigned fid;
    363364    struct sftp_request *req;
    364365
    365366    if (!pktin) {
     
    371372    fxp_internal_error("did not receive a valid SFTP packet");
    372373    return NULL;
    373374    }
    374     req = find234(sftp_requests, &id, sftp_reqfind);
     375    fid = id;
     376    req = find234(sftp_requests, &fid, sftp_reqfind);
    375377
    376378    if (!req || !req->registered) {
    377379    fxp_internal_error("request ID mismatch");