summaryrefslogtreecommitdiff
path: root/libexec/tftpd
diff options
context:
space:
mode:
authormycroft <mycroft@NetBSD.org>1995-06-03 22:47:20 +0000
committermycroft <mycroft@NetBSD.org>1995-06-03 22:47:20 +0000
commite4cc49cc0d3dff3af2db8098da70e4ef271462e5 (patch)
treebf3b4b44e4e961261f7cb8bd9a9ebe6ccb4fa8d4 /libexec/tftpd
parent5860921eda23be0b988b06792d89cfb5ee090f51 (diff)
Fill in sin_len.
Diffstat (limited to 'libexec/tftpd')
-rw-r--r--libexec/tftpd/tftpd.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/libexec/tftpd/tftpd.c b/libexec/tftpd/tftpd.c
index 1ae4d0653d6..a075b2b4d5e 100644
--- a/libexec/tftpd/tftpd.c
+++ b/libexec/tftpd/tftpd.c
@@ -39,7 +39,7 @@ char copyright[] =
#ifndef lint
/*static char sccsid[] = "from: @(#)tftpd.c 5.13 (Berkeley) 2/26/91";*/
-static char rcsid[] = "$Id: tftpd.c,v 1.5 1994/03/01 08:27:44 cgd Exp $";
+static char rcsid[] = "$Id: tftpd.c,v 1.6 1995/06/03 22:48:30 mycroft Exp $";
#endif /* not lint */
/*
@@ -197,6 +197,7 @@ main(argc, argv)
exit(0);
}
}
+ from.sin_len = sizeof(struct sockaddr_in);
from.sin_family = AF_INET;
alarm(0);
close(fd);