freebsd-ports/ftp/atftp/files/patch-tftp_mtftp.c
Kevin Lo fe9dc20c2a Import atftp-0.7
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.
2010-10-05 06:23:11 +00:00

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