attempt at a fix

This commit is contained in:
Andrew Pamment 2017-04-05 09:44:34 +10:00
parent 2e77fb600a
commit 16d2222491

View File

@ -388,7 +388,7 @@ void handle_PASV(struct ftpserver *cfg, struct ftpclient *client) {
server.sin6_port = htons(port); server.sin6_port = htons(port);
if (bind(client->data_srv_socket, (struct sockaddr*) &server, sizeof(struct sockaddr)) < 0) { if (bind(client->data_srv_socket, (struct sockaddr*) &server, sizeof(server)) < 0) {
send_msg(client, "426 PASV failure\r\n"); send_msg(client, "426 PASV failure\r\n");
return; return;
} }