From 3f22965893db0c64f8e854d4fb525b123632fb2d Mon Sep 17 00:00:00 2001 From: Murat Seker Date: Fri, 21 Apr 2017 18:01:04 +0300 Subject: [PATCH] Update ftpd.c PCLint Info 774: Boolean within 'if' always evaluates to True --- ftpd.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ftpd.c b/ftpd.c index 5097d43..4f142ce 100644 --- a/ftpd.c +++ b/ftpd.c @@ -896,9 +896,9 @@ static void cmd_pasv(const char *arg, struct tcp_pcb *pcb, struct ftpd_msgstate break; if (start_port == port) err = ERR_CLSD; - if (err == ERR_USE) + if (err == ERR_USE) { continue; - if (err != ERR_OK) { + } else { ftpd_dataclose(fsm->datapcb, fsm->datafs); fsm->datapcb = NULL; fsm->datafs = NULL;