Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
openSUSE:12.2:PowerPC
lukemftp
hostname.dif
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File hostname.dif of Package lukemftp
--- src/ftp.c +++ src/ftp.c @@ -159,14 +159,15 @@ return (0); } - if (res0->ai_canonname) - (void)strlcpy(hostnamebuf, res0->ai_canonname, - sizeof(hostnamebuf)); - else - (void)strlcpy(hostnamebuf, host, sizeof(hostnamebuf)); - hostname = hostnamebuf; - for (res = res0; res; res = res->ai_next) { + + if (res->ai_canonname) + (void)strlcpy(hostnamebuf, res->ai_canonname, + sizeof(hostnamebuf)); + else + (void)strlcpy(hostnamebuf, host, sizeof(hostnamebuf)); + hostname = hostnamebuf; + /* * make sure that ai_addr is NOT an IPv4 mapped address. * IPv4 mapped address complicates too many things in FTP
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