diff options
author | KatolaZ <katolaz@freaknet.org> | 2019-02-08 05:14:29 +0000 |
---|---|---|
committer | KatolaZ <katolaz@freaknet.org> | 2019-02-08 05:14:29 +0000 |
commit | 9696842a61b6608f10633a984732a145c4fe5c68 (patch) | |
tree | c715b7439c3bb1d5d5eb09540952da6adc62a0d3 /debian/patches/03-468454-fingerd-ipv6.patch | |
parent | 172540a4a29fa4c0c5f0431bb5bf5b3d08ec92c0 (diff) |
add debian/ folder
Diffstat (limited to 'debian/patches/03-468454-fingerd-ipv6.patch')
-rw-r--r-- | debian/patches/03-468454-fingerd-ipv6.patch | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/debian/patches/03-468454-fingerd-ipv6.patch b/debian/patches/03-468454-fingerd-ipv6.patch new file mode 100644 index 0000000..854643e --- /dev/null +++ b/debian/patches/03-468454-fingerd-ipv6.patch @@ -0,0 +1,33 @@ +http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=468454 + +Description: Implement IPv6 capacity for the server Fingerd. +Author: Mats Erik Andersson <debian@gisladisker.se> +Forwarded: no +Last-Update: 2010-02-09 + +--- a/fingerd/fingerd.c ++++ b/fingerd/fingerd.c +@@ -112,7 +112,7 @@ main(int argc, char *argv[]) + int k, nusers; + char *s, *t; + const char *fingerpath = NULL; +- struct sockaddr_in sn; ++ struct sockaddr_storage sn; + socklen_t sval = sizeof(sn); + + +@@ -182,11 +182,13 @@ main(int argc, char *argv[]) + } + + if (welcome) { +- char buf[256]; ++ char buf[256] = ""; + struct hostent *hp; + struct utsname utsname; + + uname(&utsname); ++ /* gethostbyname() only retrieves the local hostname. ++ * This does not disturb IPv6 in any manner. */ + gethostname(buf, sizeof(buf)); + if ((hp = gethostbyname(buf))) { + /* paranoia: dns spoofing? */ |