Browse Source

Fix crash in HttpSkipResponseCommand ctor

(Regression from the memory holes stuff; missed to commit :p)
Nils Maier 11 năm trước cách đây
mục cha
commit
a44c71586a
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      src/HttpSkipResponseCommand.cc

+ 1 - 1
src/HttpSkipResponseCommand.cc

@@ -75,7 +75,7 @@ HttpSkipResponseCommand::HttpSkipResponseCommand
   : AbstractCommand(cuid, req, fileEntry, requestGroup, e, s,
                     httpConnection->getSocketRecvBuffer()),
     sinkFilterOnly_(true),
-    totalLength_(httpResponse_->getEntityLength()),
+    totalLength_(httpResponse->getEntityLength()),
     receivedBytes_(0),
     httpConnection_(httpConnection),
     httpResponse_(std::move(httpResponse)),