commit | 39e2f1229562e1195169905607bc12290d21f021 | [log] [download] |
---|---|---|
author | millert@openbsd.org <millert@openbsd.org> | Sun Mar 01 15:44:40 2015 +0000 |
committer | Damien Miller <djm@mindrot.org> | Tue Mar 03 04:45:01 2015 +1100 |
tree | 55573799b3fa7afc981f085ad84135af47782bdf | |
parent | e47536ba9692d271b8ad89078abdecf0a1c11707 [diff] |
upstream commit Make sure we only call getnameinfo() for AF_INET or AF_INET6 sockets. getpeername() of a Unix domain socket may return without error on some systems without actually setting ss_family so getnameinfo() was getting called with ss_family set to AF_UNSPEC. OK djm@