Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
DISCONTINUED:openSUSE:11.1:Update
turnpike
turnpike.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File turnpike.patch of Package turnpike
This does exactly what the macro GETNAMEINFO does - but without warnings. --- VPNClient/vpnlogin/src/utility.c +++ VPNClient/vpnlogin/src/utility.c @@ -728,7 +728,11 @@ if (saddr->sa_family == AF_UNSPEC) snprintf (buf, sizeof(buf), "%s", "anonymous"); else { - GETNAMEINFO(saddr, addr, port); + if (getnameinfo(saddr, 16, addr, sizeof(addr), port, sizeof(port), + NIFLAGS) != 0) { + strncpy(addr, "(invalid)", sizeof(addr)); + strncpy(port, "(invalid)", sizeof(port)); + } snprintf(buf, sizeof(buf), "%s[%s]", addr, port); }
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