Blame SOURCES/telnet-rh678324.patch

e4a049
diff -up netkit-telnet-0.17/telnetd/telnetd.c.rh678324 netkit-telnet-0.17/telnetd/telnetd.c
e4a049
--- netkit-telnet-0.17/telnetd/telnetd.c.rh678324	2011-06-28 14:51:09.996726296 +0200
e4a049
+++ netkit-telnet-0.17/telnetd/telnetd.c	2011-06-28 14:52:38.212726283 +0200
e4a049
@@ -92,7 +92,7 @@ extern void usage(void);
e4a049
 int
e4a049
 main(int argc, char *argv[], char *env[])
e4a049
 {
e4a049
-	struct sockaddr from;
e4a049
+	struct sockaddr_storage from;
e4a049
 	int on = 1;
e4a049
 	socklen_t fromlen;
e4a049
 	register int ch;
e4a049
@@ -344,7 +344,7 @@ main(int argc, char *argv[], char *env[]
e4a049
 
e4a049
 	openlog("telnetd", LOG_PID | LOG_ODELAY, LOG_DAEMON);
e4a049
 	fromlen = sizeof (from);
e4a049
-	if (getpeername(s, &from, &fromlen) < 0) {
e4a049
+	if (getpeername(s, (struct sockaddr *)&from, &fromlen) < 0) {
e4a049
 		fprintf(stderr, "%s: ", progname);
e4a049
 		perror("getpeername");
e4a049
 		_exit(1);