PR_INADDR_ANY needs PR_htonl before assignment to inet.ip
Categories
(NSS :: Tools, defect, P5)
Tracking
(Not tracked)
People
(Reporter: woutershep, Assigned: KaiE)
Details
Attachments
(2 files)
|
2.68 KB,
patch
|
Details | Diff | Splinter Review | |
|
3.09 KB,
patch
|
Details | Diff | Splinter Review |
Updated•3 years ago
|
Updated•2 years ago
|
| Reporter | ||
Comment 1•2 years ago
|
||
Hey! After 11 years, who would've thought!
Unfortunately i do not see any change in the source code.
https://hg.mozilla.org/projects/nss/file/tip/cmd/httpserv/httpserv.c#l975
Was this mistakenly marked resolved or just not pushed yet or something?
Documentation seems to have been relocated meanwhile but still seems to say the same as it did 11 years ago:
"The macros PR_AF_INET, PR_AF_INET6, PR_INADDR_ANY, PR_INADDR_LOOPBACK are defined if prio.h is included. PR_INADDR_ANY and PR_INADDR_LOOPBACK are special IPv4 addresses in host byte order, so they must be converted to network byte order before being assigned to the inet.ip field." - https://firefox-source-docs.mozilla.org/nspr/reference/prnetaddr.html#description
Comment 2•2 years ago
|
||
@Kai, I closed this inactive but it is not. Actually this seems like an NSPR issue. Can you please retriage this ? : ) Thanks!
| Assignee | ||
Comment 3•2 years ago
|
||
Actually, it's an issue with the NSS tools.
| Assignee | ||
Comment 4•2 years ago
|
||
Wouter, thank you. I agree with you. All over the NSPR code I see that PR_INADDR_ANY is used in the way you suggest.
| Assignee | ||
Comment 5•2 years ago
|
||
This is just merged and has proper author and commit message.
| Assignee | ||
Comment 6•2 years ago
|
||
Description
•