History log of /freebsd-10-stable/lib/libc/net/getnameinfo.c
Revision Date Author Comments
# 287736 13-Sep-2015 hrs

MFC 287349,287404:

- Print sdl->sdl_data when sdl->sdl_nlen > 0 && sdl->sdl_alen == 0
as link_ntoa(3) does.

- snprintf() returns at most size-1 of the chars printed into
the buffer. (n == hostlen) also means the buffer length was
too short.


# 287729 12-Sep-2015 hrs

MFC 287595:

- Fix SIGSEGV when sa == NULL. NULL check in getnameinfo_inet()
did not work as expected.

- Simplify afdl table lookup.


# 287736 13-Sep-2015 hrs

MFC 287349,287404:

- Print sdl->sdl_data when sdl->sdl_nlen > 0 && sdl->sdl_alen == 0
as link_ntoa(3) does.

- snprintf() returns at most size-1 of the chars printed into
the buffer. (n == hostlen) also means the buffer length was
too short.


# 287729 12-Sep-2015 hrs

MFC 287595:

- Fix SIGSEGV when sa == NULL. NULL check in getnameinfo_inet()
did not work as expected.

- Simplify afdl table lookup.