~ubuntu-branches/ubuntu/oneiric/libktorrent/oneiric

« back to all changes in this revision

Viewing changes to src/download/packet.cpp

  • Committer: Bazaar Package Importer
  • Author(s): Modestas Vainius
  • Date: 2011-05-26 00:33:38 UTC
  • mfrom: (5.1.7 experimental)
  • Revision ID: james.westby@ubuntu.com-20110526003338-2r4zwyzn8bovsxay
Tags: 1.1.1-2
Release to unstable.

Show diffs side-by-side

added added

removed removed

Lines of Context:
108
108
                        if (ReadUint32(data,9) != req.getOffset())
109
109
                                return false; 
110
110
                        
111
 
                        if (ReadUint32(data,13) != req.getLength())
 
111
                        if (size - 13 != req.getLength())
112
112
                                return false;
113
113
                        
114
114
                        return true;