attempt to fix passive mode

This commit is contained in:
Andrew Pamment 2017-04-05 09:47:40 +10:00
parent 16d2222491
commit 915b5e2be2

View File

@ -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, ".");