summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSlávek Banko <[email protected]>2018-09-13 09:51:02 +0200
committerSlávek Banko <[email protected]>2018-09-13 09:51:02 +0200
commitca3519502d5ae6da51c2a56e4d9d32606d1be7d8 (patch)
tree1e9d54a3cbf6924c620018146795fa70278eb76b
parentac46856010e38bbb5767233541b96f433bdcd7a5 (diff)
downloadtdeio-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.cc2
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;