~ubuntu-branches/ubuntu/saucy/curl/saucy-201307251546

« back to all changes in this revision

Viewing changes to lib/ssh.c

  • Committer: Bazaar Package Importer
  • Author(s): Ramakrishnan Muthukrishnan
  • Date: 2010-10-18 11:13:17 UTC
  • mto: (3.6.1 experimental) (1.3.1)
  • mto: This revision was merged to the branch mainline in revision 44.
  • Revision ID: james.westby@ubuntu.com-20101018111317-9rkas34ecwtq0upn
Tags: upstream-7.21.2
ImportĀ upstreamĀ versionĀ 7.21.2

Show diffs side-by-side

added added

removed removed

Lines of Context:
1442
1442
            data->state.resume_from = 0;
1443
1443
          }
1444
1444
          else {
 
1445
            curl_off_t size = attrs.filesize;
 
1446
            if(size < 0) {
 
1447
              failf(data, "Bad file size (%" FORMAT_OFF_T ")", size);
 
1448
              return CURLE_BAD_DOWNLOAD_RESUME;
 
1449
            }
1445
1450
            data->state.resume_from = attrs.filesize;
1446
1451
          }
1447
1452
        }
1911
1916
        data->req.maxdownload = -1;
1912
1917
      }
1913
1918
      else {
1914
 
        curl_off_t size;
 
1919
        curl_off_t size = attrs.filesize;
1915
1920
 
1916
 
        size = attrs.filesize;
 
1921
        if(size < 0) {
 
1922
          failf(data, "Bad file size (%" FORMAT_OFF_T ")", size);
 
1923
          return CURLE_BAD_DOWNLOAD_RESUME;
 
1924
        }
1917
1925
        if(conn->data->state.use_range) {
1918
1926
          curl_off_t from, to;
1919
1927
          char *ptr;