summaryrefslogtreecommitdiffstats
path: root/loader
diff options
context:
space:
mode:
Diffstat (limited to 'loader')
-rw-r--r--loader/ftp.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/loader/ftp.c b/loader/ftp.c
index 8f8a585f9..15b4f8326 100644
--- a/loader/ftp.c
+++ b/loader/ftp.c
@@ -330,7 +330,7 @@ int ftpOpen(char *host, int family, char *name, char *password,
/* FTP does not require that USER be followed by PASS. Anonymous logins
* in particular do not need any password.
*/
- if (!strncmp(userReply, "230", 3)) {
+ if (strncmp(userReply, "230", 3) != 0) {
if ((rc = ftpCommand(sock, NULL, "PASS", password, NULL))) {
close(sock);
return rc;