fe9dc20c2a
Atftp is a client/server implementation of the TFTP protocol that implements RFCs 1350, 2090, 2347, 2348, and 2349. The server is multi-threaded and the client presents a friendly interface using libreadline. The current server implementation lacks IPv6 support.
12 lines
429 B
C
12 lines
429 B
C
--- tftp_mtftp.c.orig 2010-10-05 14:12:47.000000000 +0800
|
|
+++ tftp_mtftp.c 2010-10-05 14:13:19.000000000 +0800
|
|
@@ -138,7 +138,8 @@
|
|
memset(&file_bitmap, 0, sizeof(file_bitmap));
|
|
|
|
/* make sure the socket is not connected */
|
|
- sa.sin_family = AF_UNSPEC;
|
|
+ memset(&sa, 0, sizeof(sa));
|
|
+ sa.sin_family = AF_INET;
|
|
connect(sockfd, (struct sockaddr *)&sa, sizeof(sa));
|
|
|
|
/* copy sa_peer structure */
|