summaryrefslogtreecommitdiffstats
path: root/libftp/ftplib.c
diff options
context:
space:
mode:
Diffstat (limited to 'libftp/ftplib.c')
-rw-r--r--libftp/ftplib.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/libftp/ftplib.c b/libftp/ftplib.c
index d9b98e9a..68165100 100644
--- a/libftp/ftplib.c
+++ b/libftp/ftplib.c
@@ -1414,8 +1414,8 @@ static int HttpSendCmd(const char *cmd, char expresp, netbuf *nControl)
{
int ret = 0;
char *buf = nControl->response;
- if (nControl->dir != FTPLIB_CONTROL)
- return 0;
+ //if (nControl->dir != FTPLIB_CONTROL)
+ //return 0;
if (ftplib_debug > 2)
fprintf(stderr,"%s\n",cmd);
if (net_write(nControl->handle,cmd,strlen(cmd)) <= 0)
@@ -1426,8 +1426,9 @@ static int HttpSendCmd(const char *cmd, char expresp, netbuf *nControl)
while (ret < 256) {
if (socket_wait(nControl) != 1)
return 0;
- if (net_read(nControl->handle,buf,1) != 1)
+ if (net_read(nControl->handle,buf,1) != 1) {
break;
+ }
ret++;
if (*buf == '\r') continue;
if (*buf == '\n') break;