dirmngr: Fix alignment of ADDR.
authorNIIBE Yutaka <gniibe@fsij.org>
Thu, 13 Apr 2017 05:33:33 +0000 (14:33 +0900)
committerNIIBE Yutaka <gniibe@fsij.org>
Thu, 13 Apr 2017 05:33:33 +0000 (14:33 +0900)
commit892b33bb2c57785927ea6652091191da2deed464
treea017e95bcf03ca4034450f48c02d9de507d766c3
parent37018adce6ea4920b34d59afcfe4f55f716b3086
dirmngr: Fix alignment of ADDR.

* dirmngr/dns-stuff.h (dns_addrinfo_s): Use struct sockaddr_storage
for size and alignment.
* dirmngr/dns-stuff.c (resolve_name_libdns): Follow the change.
(resolve_dns_name): Use struct sockaddr_storage.
(resolve_addr_standard, resolve_dns_addr): Likewise.
(resolve_dns_addr): Likewise.

Signed-off-by: NIIBE Yutaka <gniibe@fsij.org>
dirmngr/dns-stuff.c
dirmngr/dns-stuff.h