Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
SUSE:SLE-15-SP7:Update
talk
netkit-ntalk-0.17-dont-resolve.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File netkit-ntalk-0.17-dont-resolve.patch of Package talk
--- talkd/talkd.c +++ talkd/talkd.c @@ -220,28 +220,13 @@ AF_INET); if (hp == NULL) { syslog(LOG_WARNING, "%s: bad dns", theirip); - send_reject_packet(mp, &sn, MACHINE_UNKNOWN, 0); - return; - } - strncpy(theirhost, hp->h_name, sizeof(theirhost)); - theirhost[sizeof(theirhost)-1] = 0; - - hp = gethostbyname(theirhost); - if (hp == NULL) { - syslog(LOG_WARNING, "%s: bad dns", theirip); - send_reject_packet(mp, &sn, MACHINE_UNKNOWN, 0); - return; - } - - for (i=ok=0; hp->h_addr_list[i] && !ok; i++) { - if (!memcmp(hp->h_addr_list[i], &sn.sin_addr, - sizeof(sn.sin_addr))) ok = 1; - } - if (!ok) { - syslog(LOG_WARNING, "%s: bad dns", theirip); - send_reject_packet(mp, &sn, MACHINE_UNKNOWN, 0); - return; + strncpy(theirhost, theirip, sizeof(theirhost)); + theirhost[sizeof(theirhost)-1] = 0; } + else { + strncpy(theirhost, hp->h_name, sizeof(theirhost)); + theirhost[sizeof(theirhost)-1] = 0; + } /* * Try to straighten out bad packets.
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor