From 915b5e2be2e84eafb137ca8467f16ad2db19ab18 Mon Sep 17 00:00:00 2001 From: Andrew Pamment Date: Wed, 5 Apr 2017 09:47:40 +1000 Subject: [PATCH] attempt to fix passive mode --- utils/magiftpd/magiftpd.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/utils/magiftpd/magiftpd.c b/utils/magiftpd/magiftpd.c index 1749a67..3ea0917 100644 --- a/utils/magiftpd/magiftpd.c +++ b/utils/magiftpd/magiftpd.c @@ -402,7 +402,7 @@ void handle_PASV(struct ftpserver *cfg, struct ftpclient *client) { getsockname(client->data_srv_socket, (struct sockaddr*) &file_addr, &file_sock_len); fprintf(stderr, "%s\n", client->hostip); - ipcpy = strdup(&client->hostip[8]); + ipcpy = strdup(&client->hostip[7]); ipptr = strtok(ipcpy, ".");