Login
[x]
Log in using an account from:
Fedora Account System
Red Hat Associate
Red Hat Customer
Or login using a Red Hat Bugzilla account
Forgot Password
Login:
Hide Forgot
Create an Account
Red Hat Bugzilla – Attachment 185181 Details for
Bug 253392
telnetd refuses connections if nameserver(s) down
[?]
New
Simple Search
Advanced Search
My Links
Browse
Requests
Reports
Current State
Search
Tabular reports
Graphical reports
Duplicates
Other Reports
User Changes
Plotly Reports
Bug Status
Bug Severity
Non-Defaults
|
Product Dashboard
Help
Page Help!
Bug Writing Guidelines
What's new
Browser Support Policy
5.0.4.rh83 Release notes
FAQ
Guides index
User guide
Web Services
Contact
Legal
This site requires JavaScript to be enabled to function correctly, please enable it.
[patch]
Fix use of ipv6 name lookups
netkit-telnet-0.17-nodns.patch (text/plain), 1.33 KB, created by
Bryn M. Reeves
on 2007-09-03 11:30:08 UTC
(
hide
)
Description:
Fix use of ipv6 name lookups
Filename:
MIME Type:
Creator:
Bryn M. Reeves
Created:
2007-09-03 11:30:08 UTC
Size:
1.33 KB
patch
obsolete
>diff -Nurp netkit-telnet-0.17.orig/telnetd/telnetd.c netkit-telnet-0.17/telnetd/telnetd.c >--- netkit-telnet-0.17.orig/telnetd/telnetd.c 2007-03-13 16:31:20.000000000 +0000 >+++ netkit-telnet-0.17/telnetd/telnetd.c 2007-03-13 16:31:26.000000000 +0000 >@@ -653,6 +653,11 @@ doit(struct sockaddr *who, socklen_t who > > error = getnameinfo(who, wholen, namebuf, sizeof(namebuf), NULL, 0, 0); > >+ /* if we can't get a hostname now, settle for an address */ >+ if(error == EAI_AGAIN) >+ error = getnameinfo(who, wholen, namebuf, sizeof(namebuf), >+ NULL, 0, NI_NUMERICHOST); >+ > if (error) { > perror("getnameinfo: localhost"); > perror(gai_strerror(error)); >@@ -681,7 +686,7 @@ doit(struct sockaddr *who, socklen_t who > /* Get local host name */ > { > struct addrinfo hints; >- struct addrinfo *res; >+ struct addrinfo *res = 0; > int e; > > memset(&hints, '\0', sizeof(hints)); >@@ -690,11 +695,14 @@ doit(struct sockaddr *who, socklen_t who > > gethostname(host_name, sizeof(host_name)); > if ((e = getaddrinfo(host_name, NULL, &hints, &res)) != 0) { >- perror("getaddrinfo: localhost"); >- perror(gai_strerror(e)); >- exit(1); >+ if(e != EAI_AGAIN) { >+ perror("getaddrinfo: localhost"); >+ perror(gai_strerror(e)); >+ exit(1); >+ } > } >- freeaddrinfo(res); >+ if(res) >+ freeaddrinfo(res); > } > > #if defined(AUTHENTICATE) || defined(ENCRYPT)
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 253392
:
161807
| 185181 |
185191