summaryrefslogtreecommitdiff
path: root/methods/rred.cc
diff options
context:
space:
mode:
authorMichael Vogt <michael.vogt@ubuntu.com>2011-02-15 11:21:31 +0100
committerMichael Vogt <michael.vogt@ubuntu.com>2011-02-15 11:21:31 +0100
commit87f8f68c50f63b39b7a91e3aec0b5ef59069186d (patch)
treeda23238b6ce9e63438b2e9290b4a383eb79d842a /methods/rred.cc
parent8d009e3e8ac6c6431a8bc79a07d9ad7c0295d160 (diff)
parent1dfaf0bf650a78ddaf991bf3ad597fa4d101041f (diff)
merged from debian
Diffstat (limited to 'methods/rred.cc')
-rw-r--r--methods/rred.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/methods/rred.cc b/methods/rred.cc
index 9ad0e4464..849973e1a 100644
--- a/methods/rred.cc
+++ b/methods/rred.cc
@@ -256,7 +256,7 @@ RredMethod::State RredMethod::patchMMap(FileFd &Patch, FileFd &From, /*{{{*/
if (Patch.gzFd() != NULL) {
unsigned long mapSize = Patch.Size();
DynamicMMap* dyn = new DynamicMMap(0, mapSize, 0);
- if (dyn->Data() == 0) {
+ if (dyn->validData() == false) {
delete dyn;
return MMAP_FAILED;
}