diff options
author | Slávek Banko <[email protected]> | 2018-09-13 09:51:02 +0200 |
---|---|---|
committer | Slávek Banko <[email protected]> | 2018-09-13 09:51:02 +0200 |
commit | ca3519502d5ae6da51c2a56e4d9d32606d1be7d8 (patch) | |
tree | 1e9d54a3cbf6924c620018146795fa70278eb76b | |
parent | ac46856010e38bbb5767233541b96f433bdcd7a5 (diff) | |
download | tdeio-ftps-ca3519502d5ae6da51c2a56e4d9d32606d1be7d8.tar.gz tdeio-ftps-ca3519502d5ae6da51c2a56e4d9d32606d1be7d8.zip |
Fix pointer comparison
This resolves issue #1
Signed-off-by: Slávek Banko <[email protected]>
-rw-r--r-- | tdeio_ftps/ftp.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tdeio_ftps/ftp.cc b/tdeio_ftps/ftp.cc index 2bacb8e..41e6f32 100644 --- a/tdeio_ftps/ftp.cc +++ b/tdeio_ftps/ftp.cc @@ -1266,7 +1266,7 @@ bool Ftp::ftpCloseCommand() kdDebug(7102) << "ftpCloseCommand: reading command result" << endl; m_bBusy = false; - if(ftpResponse(-1) <= 0 || (m_iRespType != 2) ) + if(!ftpResponse(-1) || (m_iRespType != 2) ) { kdDebug(7102) << "ftpCloseCommand: no transfer complete message" << endl; return false; |