Jelajahi Sumber

Fix crash in HttpSkipResponseCommand ctor

(Regression from the memory holes stuff; missed to commit :p)
Nils Maier 11 tahun lalu
induk
melakukan
a44c71586a
1 mengubah file dengan 1 tambahan dan 1 penghapusan
  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)),