You are viewing a plain text version of this content. The canonical link for it is here.
Posted to bugs@apr.apache.org by bu...@apache.org on 2008/04/29 15:58:23 UTC
DO NOT REPLY [Bug 44903] New: apr_gethostbyname incorrectly uses
htons to convert port number
https://issues.apache.org/bugzilla/show_bug.cgi?id=44903
Summary: apr_gethostbyname incorrectly uses htons to convert port
number
Product: APR
Version: HEAD
Platform: All
OS/Version: Linux
Status: NEW
Severity: normal
Priority: P4
Component: APR
AssignedTo: bugs@apr.apache.org
ReportedBy: ctaylor@wadeford.plus.com
apr_gethostbyname incorrectly uses htons to convert port number when assigning
the apr_sockaddr_t structure element "port". getservbyname returns a port
number that is in network order, and therefore it should be using ntohs to make
the conversion into host order. At the moment this is generally working on
most O/S because htons performs the same calculation as ntohs.
--
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@apr.apache.org
For additional commands, e-mail: bugs-help@apr.apache.org
DO NOT REPLY [Bug 44903] apr_gethostbyname incorrectly uses htons to
convert port number
Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=44903
Jeff Trawick <tr...@apache.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|RESOLVED |CLOSED
--
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@apr.apache.org
For additional commands, e-mail: bugs-help@apr.apache.org
DO NOT REPLY [Bug 44903] apr_gethostbyname incorrectly uses htons to
convert port number
Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=44903
Jeff Trawick <tr...@apache.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |FIXED
--- Comment #1 from Jeff Trawick <tr...@apache.org> 2008-05-04 09:26:50 PST ---
committed to trunk and 1.3.x branch
--
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@apr.apache.org
For additional commands, e-mail: bugs-help@apr.apache.org