| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
| |
this case statement was accidently left behind when this function
was refactored in commit e8f39ca4898237cf71657500f0b11534c47a0521.
|
|
|
|
|
| |
mistakenly ordering strings before addresses in the result buffer
broke the alignment that the preceding code had set up.
|
|
|
|
|
|
|
| |
according to the documentation in the man pages, the GNU extension
functions gethostbyaddr_r, gethostbyname_r and gethostbyname2_r are
guaranteed to set the result pointer to NULL in case of error or no
result.
|
|
|
|
|
|
|
|
| |
these changes reduce the size of the function somewhat and remove many
of its dependencies, including free. in principle it should now be
async-signal-safe, but this has not been verified in detail.
minor changes to error handling are also made.
|
| |
|
| |
|
|
|
|
| |
they're supposed to return an error code rather than using errno.
|
|
|