See #4868, reverts r13103

git-svn-id: file:///home/svn/framework3/trunk@13158 4d416f70-5f16-0410-b530-b9f4589650da
unstable
Joshua Drake 2011-07-12 23:07:51 +00:00
parent 8e5c5e114d
commit ee6cbb7c87
1 changed files with 2 additions and 2 deletions

View File

@ -72,7 +72,7 @@ module Exploit::Remote::Ftp
end end
# force datasocket to renegotiate # force datasocket to renegotiate
self.datasocket.close if self.datasocket != nil self.datasocket.shutdown if self.datasocket != nil
res = send_cmd(['PASV'], true, nsock) res = send_cmd(['PASV'], true, nsock)
return nil if not res =~ /^227/ return nil if not res =~ /^227/
@ -91,7 +91,7 @@ module Exploit::Remote::Ftp
# This method handles disconnecting our data channel # This method handles disconnecting our data channel
# #
def data_disconnect def data_disconnect
self.datasocket.close self.datasocket.shutdown
self.datasocket = nil self.datasocket = nil
end end