summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSlávek Banko <slavek.banko@axis.cz>2018-09-13 09:51:02 +0200
committerSlávek Banko <slavek.banko@axis.cz>2018-09-13 09:53:37 +0200
commitb7b0e8f80864833bcb8018d48011de968975da7e (patch)
tree199b76f3bb5172872a6b2e9cf958092a9153b36c
parent4584ab1e9b5d844c9743e7b24d6d0cde959daacd (diff)
downloadtdeio-ftps-b7b0e8f80864833bcb8018d48011de968975da7e.tar.gz
tdeio-ftps-b7b0e8f80864833bcb8018d48011de968975da7e.zip
Fix pointer comparison
This resolves issue #1 Signed-off-by: Slávek Banko <slavek.banko@axis.cz> (cherry picked from commit ca3519502d5ae6da51c2a56e4d9d32606d1be7d8)
-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;