diff options
| author | Tatsuhiro Tsujikawa <tatsuhiro.t@gmail.com> | 2015-05-28 22:15:25 +0900 |
|---|---|---|
| committer | Tatsuhiro Tsujikawa <tatsuhiro.t@gmail.com> | 2015-05-28 22:15:25 +0900 |
| commit | bb8df11d7e036d485f52330ef9989e18541dad62 (patch) | |
| tree | cf7c575b6655557522c993fe3a9f2dff7e93b3bd /src/FtpNegotiationCommand.cc | |
| parent | 70541498d85d1879dcd9af9210b88a0b633a4fb9 (diff) | |
ftp, sftp: Fix heap-after-free bug on exception
Diffstat (limited to 'src/FtpNegotiationCommand.cc')
| -rw-r--r-- | src/FtpNegotiationCommand.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/FtpNegotiationCommand.cc b/src/FtpNegotiationCommand.cc index 09e4d1d1..afa3954e 100644 --- a/src/FtpNegotiationCommand.cc +++ b/src/FtpNegotiationCommand.cc @@ -467,12 +467,12 @@ bool FtpNegotiationCommand::onFileSizeDetermined(int64_t totalLength) poolConnection(); return false; } - checkIntegrityEntry->pushNextCommand(std::unique_ptr<Command>(this)); // We have to make sure that command that has Request object must // have segment after PieceStorage is initialized. See // AbstractCommand::execute() getSegmentMan()->getSegmentWithIndex(getCuid(), 0); + checkIntegrityEntry->pushNextCommand(std::unique_ptr<Command>(this)); prepareForNextAction(std::move(checkIntegrityEntry)); disableReadCheckSocket(); |
