fixed a possible reference to a broken memory

MFC after: 1 day
This commit is contained in:
SUZUKI Shinsuke 2005-05-02 07:44:24 +00:00
parent 4156b20c71
commit 7c6523affc

View File

@ -971,9 +971,9 @@ ftp_copycommand(int src, int dst, enum state *state)
return n;
}
freeaddrinfo(res);
memcpy(&data6, res->ai_addr, res->ai_addrlen);
freeaddrinfo(res);
goto sendport;
} else if (strcmp(cmd, "LPSV") == 0 && !param) {
/*