luci-lib-nixio: pass exact sockaddr length to getnameinfo()
authorJo-Philipp Wich <jow@openwrt.org>
Thu, 30 Jul 2015 20:16:47 +0000 (22:16 +0200)
committerJo-Philipp Wich <jow@openwrt.org>
Thu, 30 Jul 2015 20:38:36 +0000 (22:38 +0200)
commit376f0387261df8b2c3d5b0718a98740b9732aa24
tree0b1ed95550b280115194a892088b5a4caaa9708c
parent69ecfff002452c8ac220c4fe83156c4dfa985fa0
luci-lib-nixio: pass exact sockaddr length to getnameinfo()

Musl libc requires the length parameter of getnameinfo() to be exactly
`sizeof(struct sockaddr_in)` or `sizeof(struct sockaddr_in6)`, depending on
the passed sockaddr family.

Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>
libs/luci-lib-nixio/src/address.c