fixed a possible reference to a broken memory

MFC after: 1 day
This commit is contained in:
suz 2005-05-02 07:44:24 +00:00
parent 09e89a0a12
commit 5f0c6053a8

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) {
/*