a36e3113ae
The content of this branch was automatically imported from Fedora ELN with the following as its source: https://src.fedoraproject.org/rpms/telnet#7fe48cbcb5d5c5594e848a95b4884cf0c09360eb
22 lines
791 B
Diff
22 lines
791 B
Diff
diff -up netkit-telnet-0.17/telnetd/telnetd.c.rh678324 netkit-telnet-0.17/telnetd/telnetd.c
|
|
--- netkit-telnet-0.17/telnetd/telnetd.c.rh678324 2011-06-28 14:51:09.996726296 +0200
|
|
+++ netkit-telnet-0.17/telnetd/telnetd.c 2011-06-28 14:52:38.212726283 +0200
|
|
@@ -92,7 +92,7 @@ extern void usage(void);
|
|
int
|
|
main(int argc, char *argv[], char *env[])
|
|
{
|
|
- struct sockaddr from;
|
|
+ struct sockaddr_storage from;
|
|
int on = 1;
|
|
socklen_t fromlen;
|
|
register int ch;
|
|
@@ -344,7 +344,7 @@ main(int argc, char *argv[], char *env[]
|
|
|
|
openlog("telnetd", LOG_PID | LOG_ODELAY, LOG_DAEMON);
|
|
fromlen = sizeof (from);
|
|
- if (getpeername(s, &from, &fromlen) < 0) {
|
|
+ if (getpeername(s, (struct sockaddr *)&from, &fromlen) < 0) {
|
|
fprintf(stderr, "%s: ", progname);
|
|
perror("getpeername");
|
|
_exit(1);
|