libhttp
libhttp copied to clipboard
Port number should be uint16_t
Changing port number to uint16_t would reduce the number of checks and conversions significantly. It should be checked first however if in some border case negative or large numbers are assigned to the port number for specific undocumented purposes.