aboutsummaryrefslogtreecommitdiffstats
path: root/console/ftp.c
diff options
context:
space:
mode:
Diffstat (limited to 'console/ftp.c')
-rw-r--r--console/ftp.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/console/ftp.c b/console/ftp.c
index b9720da..dd08991 100644
--- a/console/ftp.c
+++ b/console/ftp.c
@@ -186,7 +186,7 @@ ftp_recv(struct ftp_state *s)
s->connected = 0;
}
if (NULL != strstr(p,"Not connected")) {
- if (ftp_connected)
+ if (!ftp_connected(s))
fprintf(stderr,"ftp: lost connection\n");
s->connected = 0;
}
@@ -236,7 +236,7 @@ ftp_connect(struct ftp_state *s, char *host, char *user, char *pass, char *dir)
/* login */
ftp_send(s,3,"user",user,pass);
if (230 != ftp_recv(s)) {
- if (!ftp_connected)
+ if (!ftp_connected(s))
continue;
fprintf(stderr,"ftp: login incorrect\n");
exit(1);

Privacy Policy