X-Git-Url: https://git.saurik.com/apple/security.git/blobdiff_plain/c25717e3bfe9397829b8aac32a966f746fc3c4f5..67c7378dcb8de24c86b7fedff90b4b496f2e474c:/Network/ftp-protocol.cpp diff --git a/Network/ftp-protocol.cpp b/Network/ftp-protocol.cpp index cef9777b..ae945682 100644 --- a/Network/ftp-protocol.cpp +++ b/Network/ftp-protocol.cpp @@ -332,8 +332,12 @@ void FTPProtocol::FTPConnection::transit(Event event, char *input, size_t length case transferSent: switch (reply) { case 150: + case 125: + transfer().ftpResponse() = input; // remember response for caller. + transfer().ftpResponseCode() = reply; if (!mPassive) mReceiver.receive(mDataPath); // accept incoming connection and stop listening + observe(Observer::resultCodeReady, input); // engage the data path switch (operation()) { @@ -341,9 +345,11 @@ void FTPProtocol::FTPConnection::transit(Event event, char *input, size_t length case downloadDirectory: case downloadListing: mDataPath.start(sink()); + observe(Observer::downloading, input); break; case upload: mDataPath.start(source()); + observe(Observer::uploading, input); break; default: assert(false);